chore(react/ribbon): handle search error

This commit is contained in:
Elian Doran
2025-08-24 16:41:44 +03:00
parent e1fa188244
commit b9193a5562
5 changed files with 46 additions and 48 deletions

View File

@@ -519,7 +519,8 @@ export function useTooltip(elRef: RefObject<HTMLElement>, config: Partial<Toolti
if (!elRef?.current) return;
const $el = $(elRef.current);
$el.tooltip(config);
$el.tooltip("dispose");
$el.tooltip(config);
}, [ elRef, config ]);
const showTooltip = useCallback(() => {
@@ -527,7 +528,8 @@ export function useTooltip(elRef: RefObject<HTMLElement>, config: Partial<Toolti
const $el = $(elRef.current);
$el.tooltip("show");
}, [ elRef ]);
console.log("Show tooltip ", elRef.current);
}, [ elRef, config ]);
const hideTooltip = useCallback(() => {
if (!elRef?.current) return;