Clicking on SideNavLink does not collapse the SideNav automatically #12708
Unanswered
preethimohan1
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI, I am using carbon react 1.1.0. When I click on SideNavLink, the SideNav does not collapse. I have to always click on the X button on the menu header. Am I missing some step? Am I supposed to add onChange function for collapsing the SideNav?
<SideNav aria-label="Side navigation" expanded={isSideNavExpanded} isPersistent={false}> <SideNavItems> <SideNavLink element={Link} to="/gettingstarted"> Getting Started </SideNavLink> <SideNavLink element={Link} to="/"> Home </SideNavLink> </SideNavItems> </SideNav>
Beta Was this translation helpful? Give feedback.
All reactions