-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Navigation menu does not stay open on first click. #76
Comments
This is the same behavior of the radix Navigation Menu - https://www.radix-ui.com/docs/primitives/components/navigation-menu. So, the mouse-over opens the navigation, and your first click closes that. |
Oh I see, thanks for mentioning, I will close this then as It's on radix' side. Although to me this behavior is strange and kinda an anti pattern as it's confusing with pointer devices like a mouse, especially with hybrid devices with mouse and touch. It's a buggy behavior if you hover and click immediately - as it closes after a short flicker. |
This was messing with me also. |
Upstream issue: radix-ui/primitives#1630 (and radix-ui/primitives#2326). Workaround: radix-ui/primitives#1630 (comment) |
The NavigationMenu does stay open on a first click and closes again. It works after a second click.
Can be reproduced by clickinng on a example on the docs page: https://ui.shadcn.com/docs/primitives/navigation-menu.
The text was updated successfully, but these errors were encountered: