Multiple hover Menus interfering with each other - setTimeout from one menu hides another menu's content
#3626
-
DescriptionWhen 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 ReproductionI'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.movThe Problem
Expected BehaviorWhen hover moved from 1 to 2, Menu 1 closed after 2s while Menu 2 kept open. Actual BehaviorMenu 1's setTimeout callback appears to affect Menu 2's visibility, causing it to unexpectedly hide. Environment
Possible CauseThis might be related to how Ark UI internally manages menu instances but I didn't dig that deep. Workaround AttemptedIt was just random ideas though,
QuestionIs 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.
Replies: 1 comment 2 replies
-
|
This is likely a bug in the Vue.js implementation |
Beta Was this translation helpful? Give feedback.
Now fixed.