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 ]); }