mirror of
https://github.com/zadam/trilium.git
synced 2026-07-05 04:28:46 +02:00
fix(inline_title): tooltip getting stuck if refresh
This commit is contained in:
@@ -772,6 +772,11 @@ export function useStaticTooltip(elRef: RefObject<Element>, config?: Partial<Too
|
||||
// workaround for https://github.com/twbs/bootstrap/issues/37474
|
||||
(tooltip as any)._activeTrigger = {};
|
||||
(tooltip as any)._element = document.createElement('noscript'); // placeholder with no behavior
|
||||
|
||||
// Remove *all* tooltip elements from the DOM
|
||||
document
|
||||
.querySelectorAll('.tooltip')
|
||||
.forEach(t => t.remove());
|
||||
};
|
||||
}, [ elRef, config ]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user