Multiple hover Menu
s interfering with each other - setTimeout from one menu hides another menu's content
#3626
Unanswered
FujishigeTemma
asked this question in
Q&A
Replies: 1 comment
-
This is likely a bug in the Vue.js implementation |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When using multiple Menu components with hover-to-open functionality, the setTimeout from one menu's mouseleave event can unexpectedly close another menu's content that is currently being hovered.
Minimal Reproduction
I've created a minimal reproduction here: https://github.com/FujishigeTemma/ark-ui-multi-menu-hover-repro
Screen.Recording.2025-09-17.at.17.44.42.mov
The Problem
Menu
components are configured to open on hover with a 2-second close delay (100ms in production)Expected Behavior
When hover moved from 1 to 2, Menu 1 closed after 2s while Menu 2 kept open.
Actual Behavior
Menu 1's setTimeout callback appears to affect Menu 2's visibility, causing it to unexpectedly hide.
Environment
Possible Cause
This might be related to how Ark UI internally manages menu instances but I didn't dig that deep.
Workaround Attempted
It was just random ideas though,
RootProvider
, but the issue persists.Menu.Root
, but the issue persists.Question
Is there a recommended pattern for implementing multiple hover menus that won't interfere with each other?
Thank you for your help! ❤️
Beta Was this translation helpful? Give feedback.
All reactions