diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-11-02 19:59:18 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-11-02 19:59:18 +0900 |
| commit | d20f778bd0a92fa9d3a489964f8e75981e4aadeb (patch) | |
| tree | 53ecae77f61ac167fef24a6c5c65c9ab27fac7d6 /packages/frontend/src/scripts/use-tooltip.ts | |
| parent | Revert "enhance(frontend): 「内容を隠す」でリアクションも隠... (diff) | |
| download | sharkey-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.ts | 2 |
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); |