Extra Space in Toaster Class (dmxBootstrap5Toasts.js)

There is an extra space in the toaster-body class, causing issues for QA locators. The class currently appears as:

class= "toaster-body "

image

image

Wappler Version: 6.7.1
OS: Ubuntu 22.04
Deployment: Docker

@patrick Whenever possible please fix this, preferably with the next release

Not really a bug, DOM parsers will ignore that space and selectors will all work correctly. QA locators should not have an issue with it when they parse the HTML correctly.

The space is there because it is a separator between classes and we have 2 classes on that element, the second class is a user class and default not set and inserts an empty string. Will see if I can cleanup the code a bit so that it doesn't generate that space when no user class is set.

1 Like

Have updated the code, should have no space now.

dmxBootstrap5Toasts.zip (4.6 KB)

1 Like

Thanks @patrick :slight_smile:

Fixed now in Wappler 6.7.2

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.