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

feat: add showDropdownOnFocus prop #55

Merged
merged 1 commit into from
Aug 29, 2022
Merged

Conversation

metonym
Copy link
Owner

@metonym metonym commented Aug 29, 2022

Closes #54

By default, the dropdown will be shown if value yields results. There are use cases (#54) where an initial search value may be set without the intention of immediately showing the dropdown.

This backwards-compatible change adds a showDropdownOnFocus prop that will only show the dropdown if the search input is focused, regardless of whether the current value has results.

@metonym metonym merged commit 7aeb4d4 into master Aug 29, 2022
@metonym metonym deleted the show-dropdown-on-focus branch August 29, 2022 17:54
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.

[Q] How to pre-select a value without the dropdown showing?
1 participant