Open r3tr0sp3c opened 1 year ago
The original javascript uses jquery to dispatch and handle events, so imho that is not compatible, but probably you are not using the "original" javascript (there is a version using "plain" javascript).
So assuming you are using that version, the events are ment to be handled on a container level, they will not be dispatched on any single input-field inside the form.
Here's a simple example:
The dispatchEvent doesn't work on any cocoon callback.
A workaround is to place the dispatchEvent inside a setTimeout function
Not sure if that's an expected behavior or a bug.