Skip to content

Commit

Permalink
fix(tooltip): prevent creating multiple positioners
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyzerner committed Jun 29, 2023
1 parent 1689c0d commit 4dfc42d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export default class TooltipElement extends HTMLElement {

tooltip.style.position = 'absolute';

this.cleanup?.();
this.cleanup = autoUpdate(this.parent!, tooltip, () =>
computePosition(this.parent!, tooltip, {
placement:
Expand Down

0 comments on commit 4dfc42d

Please sign in to comment.