mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 02:59:13 +00:00
cleanup just in case
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user