cleanup just in case

pull/1749/head
Cory LaViska 2023-12-01 10:02:12 -05:00
rodzic 10d9358753
commit 6e335f9a63
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -106,8 +106,9 @@ export default class SlTooltip extends ShoelaceElement {
this.addEventListener('mouseout', this.handleMouseOut);
}
connectedCallback() {
super.connectedCallback();
disconnectedCallback() {
// Cleanup this event in case the tooltip is removed while open
document.removeEventListener('keydown', this.handleDocumentKeyDown);
}
firstUpdated() {