You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportdefaultfunctionApp(){const[isSideNavExpanded,setSideNavExpanded]=React.useState(false);return(<div><Header>
// ...Some Header components
<SideNavexpanded={isSideNavExpanded}aria-label="Side navigation"href="#main-content"isRail><SideNavItems><SideNavMenutitle="L0 menu"><SideNavMenuItemhref="https://www.carbondesignsystem.com/">
Link
</SideNavMenuItem><SideNavMenuItemhref="https://www.carbondesignsystem.com/">
Link
</SideNavMenuItem><SideNavMenutitle="This submenu doesn't work"><SideNavMenuItemhref="https://www.carbondesignsystem.com/">
Link
</SideNavMenuItem><SideNavMenuItemhref="https://www.carbondesignsystem.com/">
Link
</SideNavMenuItem><SideNavMenuItemhref="https://www.carbondesignsystem.com/">
Link
</SideNavMenuItem></SideNavMenu></SideNavMenu></SideNavItems></SideNav></Header></div>);}
Open SideNav.
Open a SideNavMenu inside of SideNavMenu.
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Package
@carbon/react
Browser
Chrome
Package version
v1.71.0
React version
v18.3.1
Description
When rendering a nested menu (a
SideNavMenu
inside aSideNavMenu
) inside theSideNav
component, a menu of a menu does not open up on click.A current workaround that work is:
Reproduction/example
https://stackblitz.com/edit/github-1p4yd4
Steps to reproduce
SideNav
.SideNavMenu
inside ofSideNavMenu
.Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: