-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Combobox] Update openOnFocus example to work even with empty input
The existing openOnFocus example mounts/unmounts the popover based on the results array state, which returns null if the input term is an empty string. This is confusing in the context of the openOnFocus prop because the popover doesn't show on focus if the input is empty.
- Loading branch information
Austin Wood
committed
Jan 4, 2021
1 parent
881b6ee
commit be4ac7d
Showing
1 changed file
with
10 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters