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
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.
The text was updated successfully, but these errors were encountered:
remort
changed the title
on single selectboxes onClose event triggers before onChange
onClose event triggers before onChange on single selectboxes
Jan 17, 2019
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.
The text was updated successfully, but these errors were encountered: