Single Page App Class Toggle with isMatch function

I have light and dark logos I want to show based on what path is loaded on the page like this:

<img class="logo-light" src="assets/img/logo-dark.svg" dmx-class:d-none="pricing.isMatch">
<img class="logo-light" src="assets/img/logo-whiteblack.svg" dmx-class:d-none="home.isMatch">

Problem is the interface does not allow me to add multiple instances of the class with different matching options. It deletes the first one if second one is added.

I then added it manually - also a mission with the “Smart” Wappler that deletes duplicates(maybe another option that users can disable at own risk in advanced section)

That also does not work.

Any other options besides probably using show/hide functions?

Is the class toggle broken because of how it functions now as per above or is it intentionally designed for the Visual Building User’s sake?

Community Page
Last updated: