Skip to content
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

Closed
jackblackCH opened this issue Feb 10, 2023 · 4 comments
Closed

Bug: Navigation menu does not stay open on first click. #76

jackblackCH opened this issue Feb 10, 2023 · 4 comments

Comments

@jackblackCH
Copy link

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.

@lucaspessivaldo
Copy link
Contributor

This is the same behavior of the radix Navigation Menu - https://www.radix-ui.com/docs/primitives/components/navigation-menu.
Because when you are with the mouse over the navigation opens and if you click it will close again, and the second click you open that again.

So, the mouse-over opens the navigation, and your first click closes that.

@jackblackCH
Copy link
Author

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.

@mweel1
Copy link

mweel1 commented Jun 30, 2023

This was messing with me also.

@kachkaev
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants