mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
backport SL-2226
This commit is contained in:
@@ -16,6 +16,7 @@ During the alpha period, things might break! We take breaking changes very serio
|
||||
|
||||
- Fixed a bug in `<wa-relative-time>` where the title attribute would show with redundant info
|
||||
- Added more resilient support for lazy loaded options in `<wa-select>`
|
||||
- Fixed a bug in `<wa-tooltip>` that caused a memory leak in disconnected elements
|
||||
|
||||
## 3.0.0-alpha.3
|
||||
|
||||
|
||||
@@ -129,6 +129,8 @@ export default class WaTooltip extends WebAwesomeElement {
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
super.disconnectedCallback();
|
||||
|
||||
// Cleanup this event in case the tooltip is removed while open
|
||||
this.closeWatcher?.destroy();
|
||||
document.removeEventListener('keydown', this.handleDocumentKeyDown);
|
||||
|
||||
Reference in New Issue
Block a user