Open stell opened 1 year ago
So to make it simple:
const myselect = new Choices('#myselect', mySelectInit); myselect.passedElement.element.addEventListener( 'choice', (e) => { setTimeout(function () { document.getElementById('myForm').requestSubmit(); }, 10); }, false, );
When not using the timeout, the new chosen value is not getting submitted.
Am I missing something?
So to make it simple:
When not using the timeout, the new chosen value is not getting submitted.
Am I missing something?