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
I can confirm that removing with the "x" is not firing the change event, since it is removed from the select via javascript, and javascript value updates do not trigger change events by default. However, the Advanced Select should behave like a normal select would imo, so I'm agreeing with you.
Your wording is not ideal however, since the selection actually is removed from the select. So if you submit a form, it works as expected.
A simple workaround is to just add an event listener on click and dispatch a change event yourself.
Summary
When clicking the data-remove item "x" in advanced select the change event is not fired.
Steps to Reproduce
screen-capture (1).webm
Demo Link
screen-capture.1.webm
Expected Behavior
When clicking "x" the item is removed
Actual Behavior
When clicking "x" the item is NOT removed
Screenshots
[When clicking "x" the item is removed]screen-capture (1).webm
The text was updated successfully, but these errors were encountered: