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

If there's only one option, let pressing Enter select it #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AdaData
Copy link

@AdaData AdaData commented Mar 31, 2022

Previously, if you typed enough that only one option was available, then pressed enter, onBlur would kick in and you'd just lose your search and nothing would be selected. This change makes it so that if Enter is pressed while there is only one option remaining in the filtered list of options, that option is selected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant