From fbd47025d63aa31633712a44863754f1291b5f1f Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 17 Sep 2025 08:47:13 +0300 Subject: [PATCH] chore(react): monkey patch boostrap tooltip handling --- apps/client/src/widgets/react/hooks.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx index 9e6991f08..6a4b4ab15 100644 --- a/apps/client/src/widgets/react/hooks.tsx +++ b/apps/client/src/widgets/react/hooks.tsx @@ -536,7 +536,12 @@ export function useStaticTooltip(elRef: RefObject, config?: Partial tooltip.dispose(); + return () => { + tooltip.dispose(); + // workaround for https://github.com/twbs/bootstrap/issues/37474 + (tooltip as any)._activeTrigger = {}; + (tooltip as any)._element = document.createElement('noscript'); // placeholder with no behavior + } }, [ elRef, config ]); }