Skip to content

Commit

Permalink
Merge branch 'next' of https://github.com/shoelace-style/shoelace int…
Browse files Browse the repository at this point in the history
…o next
  • Loading branch information
claviska committed Oct 23, 2024
2 parents f238fca + 8ca1fc7 commit e89cbc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/tooltip/tooltip.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e89cbc7

Please sign in to comment.