From f87d270caa2aaa982fe6d24d879ac51d316f714b Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 17 Sep 2025 08:26:05 +0300 Subject: [PATCH] refactor(react): get rid of jQuery in static tooltip --- apps/client/src/widgets/react/hooks.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 ]); }