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]: Issue with autofocus on the first option when using search #867

Open
Seb33300 opened this issue Jan 16, 2025 · 0 comments
Open

[Bug]: Issue with autofocus on the first option when using search #867

Seb33300 opened this issue Jan 16, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Seb33300
Copy link

Bug description

On a multiple select with a long list of option, you can start typing to filter the results to show.
When filtered, the focus is automatically applied to the first option of the list.
If you click on an option to select it, the focus is automatically re applied to the first option.
This is an issue on list with many options because the dropdown scroll up to the first option every time we select an option.

This issue only happens when we use the search to filter the options. When we do not use it, there is no automatic focus on the first option.

Expected behavior

The first option should not be focused after we select an option.
Or we should be able to disable the auto focus on search.

Steps to reproduce

  1. Add a select with the multiple property and many options
  2. Click on select and start typing
  3. Scroll down the list of option and select any of them
  4. See that the dropdown automatically scroll up to the first item

Additional context

  • Tom Select 2.4.1
@Seb33300 Seb33300 added the bug Something isn't working label Jan 16, 2025
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