diff --git a/packages/react/src/menu/root/useMenuRoot.ts b/packages/react/src/menu/root/useMenuRoot.ts index 2d367d339c..0edb63feca 100644 --- a/packages/react/src/menu/root/useMenuRoot.ts +++ b/packages/react/src/menu/root/useMenuRoot.ts @@ -231,7 +231,7 @@ export function useMenuRoot(parameters: useMenuRoot.Parameters): useMenuRoot.Ret getFloatingProps( mergeReactProps(externalProps, { onMouseEnter() { - if (!openOnHover) { + if (!openOnHover || nested) { setHoverEnabled(false); } }, @@ -242,7 +242,7 @@ export function useMenuRoot(parameters: useMenuRoot.Parameters): useMenuRoot.Ret }, }), ), - [getFloatingProps, openOnHover], + [getFloatingProps, openOnHover, nested], ); return React.useMemo(