diff --git a/src/tooltip/tooltip.ts b/src/tooltip/tooltip.ts index 1761955..d66deb3 100644 --- a/src/tooltip/tooltip.ts +++ b/src/tooltip/tooltip.ts @@ -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: