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

[Feature]: Ability to select the first item with Enter keydown even if it is not highlighted on Listbox #876

Open
1 of 2 tasks
ucyildirim opened this issue Apr 25, 2024 · 1 comment
Labels

Comments

@ucyildirim
Copy link
Contributor

Describe the feature

When filtering results in the Listbox component using <ListboxFilter />, it is necessary to highlight one of the results so that it can be selected with the Enter key.

I think that if any filter has been entered, pressing the Enter key should automatically select the first result, even if it is not highlighted

Additional information

  • I intend to submit a PR for this feature.
  • I have already implemented and/or tested this feature.
@zernonia
Copy link
Collaborator

Hmm.. I think it's better to auto highlight the option when you filter the list. This way it provide visual cue to the usual that the item can be selected via "Enter".

@zernonia zernonia added the v2 label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

2 participants