mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	chore(react): monkey patch boostrap tooltip handling
This commit is contained in:
		| @@ -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 ]); | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user