Skip to content

Commit

Permalink
Disable hover while openReason is click
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Dec 26, 2024
1 parent c638d57 commit 3d9ea80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/menu/root/useMenuRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function useMenuRoot(parameters: useMenuRoot.Parameters): useMenuRoot.Ret
});

const hover = useHover(floatingRootContext, {
enabled: hoverEnabled && openOnHover && !disabled,
enabled: hoverEnabled && openOnHover && !disabled && openReason !== 'click',
handleClose: safePolygon({ blockPointerEvents: true }),
mouseOnly: true,
move: false,
Expand Down

0 comments on commit 3d9ea80

Please sign in to comment.