mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 23:29:02 +02:00
chore(react): monkey patch boostrap tooltip handling
This commit is contained in:
parent
f87d270caa
commit
fbd47025d6
@ -536,7 +536,12 @@ export function useStaticTooltip(elRef: RefObject<Element>, config?: Partial<Too
|
|||||||
if (!elRef?.current || !hasTooltip) return;
|
if (!elRef?.current || !hasTooltip) return;
|
||||||
|
|
||||||
const tooltip = Tooltip.getOrCreateInstance(elRef.current, config);
|
const tooltip = Tooltip.getOrCreateInstance(elRef.current, config);
|
||||||
return () => 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 ]);
|
}, [ elRef, config ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user