summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts/use-tooltip.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-11-02 19:59:18 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-11-02 19:59:18 +0900
commitd20f778bd0a92fa9d3a489964f8e75981e4aadeb (patch)
tree53ecae77f61ac167fef24a6c5c65c9ab27fac7d6 /packages/frontend/src/scripts/use-tooltip.ts
parentRevert "enhance(frontend): 「内容を隠す」でリアクションも隠... (diff)
downloadsharkey-d20f778bd0a92fa9d3a489964f8e75981e4aadeb.tar.gz
sharkey-d20f778bd0a92fa9d3a489964f8e75981e4aadeb.tar.bz2
sharkey-d20f778bd0a92fa9d3a489964f8e75981e4aadeb.zip
enhance(frontend): tweak MkNotification
Diffstat (limited to 'packages/frontend/src/scripts/use-tooltip.ts')
-rw-r--r--packages/frontend/src/scripts/use-tooltip.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/scripts/use-tooltip.ts b/packages/frontend/src/scripts/use-tooltip.ts
index 17ea380db0..aaf0a0285a 100644
--- a/packages/frontend/src/scripts/use-tooltip.ts
+++ b/packages/frontend/src/scripts/use-tooltip.ts
@@ -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);