-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bubble Escape event even if
Combobox.Options
is not rendered at all (…
…#1104) * bubble Escape event even if `Combobox.Options` is not rendered at all If you use `<Combobox.Options static />` it means that you are in control of rendering and in that case we also bubble the `Escape` because you are in control of it. However, if you do something like this: ```js {filteredList.length > 0 && ( <Combobox.Options static> ... </Combobox.Options> )} ``` Then whenever the `filteredList` is empty, the Combobox.Options are not rendered at all which means that we can't look at the `static` prop. To fix this, we also bubble the `Escape` event if we don't have a `Combobox.Options` at all so that the above example works as expected. * update changelog
- Loading branch information
1 parent
4ed344a
commit 706f42b
Showing
5 changed files
with
218 additions
and
141 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
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
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
Oops, something went wrong.