diff --git a/packages/ui/src/components/Menu/MenuItem.tsx b/packages/ui/src/components/Menu/MenuItem.tsx index f583e40480..4f71bdef4b 100644 --- a/packages/ui/src/components/Menu/MenuItem.tsx +++ b/packages/ui/src/components/Menu/MenuItem.tsx @@ -26,7 +26,7 @@ export function MenuItem({ children, componentClassName = 'menu-ite const menuId = useMenuId() const [expanded, setExpanded] = useSessionStorageState( `menu-${menuId}-${menuItemId}`, - val => val ?? (props.expandedByDefault || depth === 0 || !label), + val => val ?? props.expandedByDefault ?? (depth === 0 || !label), ) const className = useClassNameFactory(componentClassName)