Describe the bug
If you click the removeItem button (clearing the input) an event is triggered with the current value, then another event is triggered with the new (empty) value.
To Reproduce
Steps to reproduce the behavior:
- Go to https://codepen.io/EightArmsHQ/pen/45e90d693e81947159b4cac7caf12abd
- Click on the first option in the dropdown
- Click the cross
- Notice that there have now been 3 events in the console.
Expected behavior
The removeItem button should just fire the change event with the new, empty value.
Desktop (please complete the following information):
Additional context
This bug can be frustrating if you use the change event to trigger a promise, to do something asynchronous, as the results sometimes come back in the wrong order.
Describe the bug
If you click the removeItem button (clearing the input) an event is triggered with the current value, then another event is triggered with the new (empty) value.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The removeItem button should just fire the change event with the new, empty value.
Desktop (please complete the following information):
Additional context
This bug can be frustrating if you use the change event to trigger a promise, to do something asynchronous, as the results sometimes come back in the wrong order.