Is There Really No Way to Make Navigation.Trigger
Work with 'click' Instead of 'hover?'
#2509
-
I see a discussion regarding clicking for submenus. I'm just trying to get the 'top level' of the navigation to work with a 'click' instead of 'hover.' |
Beta Was this translation helpful? Give feedback.
Answered by
manavm1990
Nov 7, 2023
Replies: 1 comment 1 reply
-
Thanks to @andy-hook <NavigationMenu.Trigger
className="group flex w-60 items-center font-medium uppercase hover:text-primary focus:shadow-secondary"
onPointerMove={(event) => {
event.preventDefault();
}}
onPointerLeave={(event) => {
event.preventDefault();
}}
> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
manavm1990
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks to @andy-hook
Got it working how I want: