Navigation Menu - Remove on hover for NavigationMenuTrigger #1381
Answered
by
andy-hook
BradleyHennen
asked this question in
Help
-
Is there currently a way to stop the Navigation Menu trigger from opening the menu on hover? I know the component is in beta at the time of posting. If there currently isn't a way to disable on hover, is this at all planned for the full release? |
Beta Was this translation helpful? Give feedback.
Answered by
andy-hook
May 10, 2022
Replies: 1 comment
-
You can disable this behaviour by calling https://codesandbox.io/s/unruffled-robinson-duwvgn?file=/App.js Note that |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
BradleyHennen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can disable this behaviour by calling
preventDefault
on the relevant events forTrigger
andContent
https://codesandbox.io/s/unruffled-robinson-duwvgn?file=/App.js
Note that
Trigger
binds toonPointerMove / onPointerLeave
whileContent
binds toonPointerEnter / onPointerLeave