onClose event triggers before onChange on single selectboxes
Opened this issue · 0 comments
Affects single select boxes, not multiselect boxes because it closes by the moment user selects an option (two events happens at the same time).
If I set two actions: one for onClose action and on for onChange action of a single selectbox, onClose works first, onChange after.
This logic seems to be wrong. By the moment select box is start closing in already has to be changed with selected item on it.
For example:
I serialize and send form via ajax GET request to the server whenever select box is being closed.
But ajax send wrong data because form serialization takes old value from select box. And after onClose listener is finished, onChange is being processed and form itself within its field being updated.
Any other controls where two events happens at the same time can be affected by this bug. Check them too please.