-
-
Notifications
You must be signed in to change notification settings - Fork 155
Closed as not planned
Labels
Description
Bug description
If you enter text into a Tom Select control, then press the Enter key before the dropdown has been filtered, the wrong item will be selected.
Expected behavior
Entering text into a Tom Select control, then pressing Enter, should always perform filtering correctly, regardless of how fast the Enter key is pressed.
Steps to reproduce
- Go to https://tom-select.js.org/examples/
- Scroll to the final dropdown
- Clear out California and Wyoming from the combobox
- Type the letter c
- Press Enter quickly, before the dropdown has been filtered
- Alabama will be added to the combobox
Additional context
- OS: [Windows]
- Browser [chrome, firefox, edge]
Although the example given uses a select multiple, this bug also occurs in dropdowns where only a single option can be chosen.
LiiKaz