From e63a09ee7e5e67f6d9e57dde28ad9694a239bfce Mon Sep 17 00:00:00 2001 From: Sli Date: Wed, 14 May 2025 14:20:54 +0200 Subject: [PATCH] Synchronize tooltip-id and don't append tooltip to body twice --- core/static/bundled/core/tooltips-index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/static/bundled/core/tooltips-index.ts b/core/static/bundled/core/tooltips-index.ts index e315a7b2..629c9767 100644 --- a/core/static/bundled/core/tooltips-index.ts +++ b/core/static/bundled/core/tooltips-index.ts @@ -109,10 +109,6 @@ function tooltipMouseover(event: MouseEvent) { top: `${y}px`, }); }); - - if (!tooltip.isConnected) { - document.body.append(tooltip); - } } function tooltipMouseout(event: MouseEvent) { @@ -151,7 +147,7 @@ new MutationObserver((mutations: MutationRecord[]) => { } }).observe(document.body, { attributes: true, - attributeFilter: ["tooltip", "tooltip-class", "toolitp-position"], + attributeFilter: ["tooltip", "tooltip-class", "toolitp-position", "tooltip-id"], subtree: true, });