You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the template, unique classes are defined (like: class="act-{{ key }}") which are used by the JavaScript to select all inputs which belong to a certain act. This is obviously not an intended use case of classes.
These should all be replaced by HTML5 custom data attributes, like:
<inputdata-act="{{ key }}" ...
This is already partly done for the free field inputs.
Alternatively, look into passing this in event handlers which could in some cases be sufficient to find the object needed (eg. as parent or sibling of).
The text was updated successfully, but these errors were encountered:
danielschenk
changed the title
Replace unique classes with custom attributes
Replace unique classes by custom attributes
Jul 29, 2023
danielschenk
changed the title
Replace unique classes by custom attributes
Replace unique classes by custom attributes, or use this in events
Mar 11, 2024
danielschenk
changed the title
Replace unique classes by custom attributes, or use this in events
Replace unique classes by custom attributes, or use this in events
Mar 11, 2024
In the template, unique classes are defined (like:
class="act-{{ key }}"
) which are used by the JavaScript to select all inputs which belong to a certain act. This is obviously not an intended use case of classes.These should all be replaced by HTML5 custom data attributes, like:
This is already partly done for the free field inputs.
Alternatively, look into passing
this
in event handlers which could in some cases be sufficient to find the object needed (eg. as parent or sibling of).The text was updated successfully, but these errors were encountered: