-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: control whether Tooltip can be closed with Esc key (#5199)
* Control whether Tooltip can be closed with Esc key * Move condition inside the effect * Add `handler` to deps * chore: update changeset * chore: remove noop Co-authored-by: Tim Kolberger <tim@kolberger.eu> * test(tooltip): add tests for `closeOnEsc` * test(tooltip): dispatch keypress event on the tooltip, not document Co-authored-by: Tim Kolberger <tim@kolberger.eu>
- Loading branch information
1 parent
613bace
commit 73a06ae
Showing
4 changed files
with
57 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@chakra-ui/hooks": minor | ||
"@chakra-ui/tooltip": minor | ||
--- | ||
|
||
Control whether Tooltip can be closed with Esc key |
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
73a06ae
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: