Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Quick Enter key selects wrong item #764

Open
sicwere opened this issue Aug 23, 2024 · 0 comments
Open

[Bug]: Quick Enter key selects wrong item #764

sicwere opened this issue Aug 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sicwere
Copy link

sicwere commented Aug 23, 2024

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

  1. Go to https://tom-select.js.org/examples/
  2. Scroll to the final dropdown
  3. Clear out California and Wyoming from the combobox
  4. Type the letter c
  5. Press Enter quickly, before the dropdown has been filtered
  6. 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.

@sicwere sicwere added the bug Something isn't working label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant