mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
backport PR 1661
This commit is contained in:
@@ -23,6 +23,7 @@ New versions of Web Awesome are released as-needed and generally occur when a cr
|
||||
## Next
|
||||
|
||||
- Added the Croatian translation [#1656]
|
||||
- Fixed a bug that caused the [[Escape]] key to stop propagating when tooltips are disabled [#1607]
|
||||
|
||||
## 2.10.0
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ export default class WaTooltip extends WebAwesomeElement {
|
||||
|
||||
private handleKeyDown = (event: KeyboardEvent) => {
|
||||
// Pressing escape when the target element has focus should dismiss the tooltip
|
||||
if (this.open && event.key === 'Escape') {
|
||||
if (this.open && !this.disabled && event.key === 'Escape') {
|
||||
event.stopPropagation();
|
||||
this.hide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user