fix(inline_title): tooltip getting stuck if refresh

This commit is contained in:
Elian Doran 2025-12-24 10:49:36 +02:00
parent 3600192933
commit 7a1ea8833f
No known key found for this signature in database

View File

@ -772,6 +772,11 @@ export function useStaticTooltip(elRef: RefObject<Element>, config?: Partial<Too
// workaround for https://github.com/twbs/bootstrap/issues/37474
(tooltip as any)._activeTrigger = {};
(tooltip as any)._element = document.createElement('noscript'); // placeholder with no behavior
// Remove *all* tooltip elements from the DOM
document
.querySelectorAll('.tooltip')
.forEach(t => t.remove());
};
}, [ elRef, config ]);
}