enhance(frontend): tweak MkNotification

This commit is contained in:
syuilo
2023-11-02 19:59:18 +09:00
parent ed699b4aed
commit d20f778bd0
3 changed files with 22 additions and 20 deletions

View File

@@ -37,7 +37,7 @@ export function useTooltip(
};
autoHidingTimer = window.setInterval(() => {
if (!document.body.contains(elRef.value)) {
if (elRef.value == null || !document.body.contains(elRef.value instanceof Element ? elRef.value : elRef.value.$el)) {
if (!isHovering) return;
isHovering = false;
window.clearTimeout(timeoutId);