mirror of
https://github.com/zadam/trilium.git
synced 2025-12-29 18:54:29 +01:00
fix(inline_title): tooltip getting stuck if refresh
This commit is contained in:
parent
3600192933
commit
7a1ea8833f
@ -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 ]);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user