kopia lustrzana https://github.com/shoelace-style/shoelace
SlTooltip call `super.disconnectedCallback()` (#2226)
rodzic
b4a3b32bb0
commit
8ca1fc7749
|
@ -109,6 +109,7 @@ export default class SlTooltip extends ShoelaceElement {
|
|||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
super.disconnectedCallback();
|
||||
// Cleanup this event in case the tooltip is removed while open
|
||||
this.closeWatcher?.destroy();
|
||||
document.removeEventListener('keydown', this.handleDocumentKeyDown);
|
||||
|
|
Ładowanie…
Reference in New Issue