diff --git a/src/components/SidebarNav/index.tsx b/src/components/SidebarNav/index.tsx index fb526bde..1466f353 100644 --- a/src/components/SidebarNav/index.tsx +++ b/src/components/SidebarNav/index.tsx @@ -117,8 +117,9 @@ export const SidebarNavBase = ({ ref={toggleButtonRef} data-testid="sidebarnav-toggle" className={classNames({ collapsed: navIsCollapsed })} - onClick={() => { + onClick={(e) => { setNavIsCollapsed(!navIsCollapsed); + e.stopPropagation(); }} aria-label={ navIsCollapsed ? "Expand navigation" : "Collapse navigation"