diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx index a1f06eeac..9e6991f08 100644 --- a/apps/client/src/widgets/react/hooks.tsx +++ b/apps/client/src/widgets/react/hooks.tsx @@ -535,11 +535,8 @@ export function useStaticTooltip(elRef: RefObject, config?: Partial { - $el.tooltip("dispose"); - } + const tooltip = Tooltip.getOrCreateInstance(elRef.current, config); + return () => tooltip.dispose(); }, [ elRef, config ]); }