Wappler 6.5.2
Strange behavior when using dmx-bind is duplicating the id, causing my application to break and not work correctly.
Wappler 6.5.2
Strange behavior when using dmx-bind is duplicating the id, causing my application to break and not work correctly.
What is duplicated exactly and what breaks?
1 - create a div, add an id attribute to it.
ex:
<div id="c235"></div>
2 - now add dmx-bind to the id
ex:
<div dmx-bind:id="c{{id}}"></div>
3 - now open the browser and check the result
the id field was duplicated and not overwritten
I don’t see what’s duplicated.
But this is how it is supposed to work with App Connet 2:
This has already been discussed in some topics:
Use either a dynamic ID or a static ID. No need for both as that must be where the confusion is arising? If you specify an ID with a static value and then apply an ID with a dynamic value there will be two ID’s (the static ID is not removed automatically upon assigning a dynamic ID, is this the duplication you are speaking of?).
So the issue is
You add a dynamic id with dmx-bind inside a repeat and it also adds a fixed static id automatically as well?
The “issue” from what i understand is that it shows the original attributes in the DOM unlike App Connect 1. But as explained this is not an issue, but how it is supposed to work now in App Connect 2.
Is the issue (if it is an issue) related to this:
?
ok that worked