From d31c4bd32855f6ece17275f4913389f8c47b2677 Mon Sep 17 00:00:00 2001 From: Tyler Nullmeier Date: Thu, 12 Dec 2024 14:26:33 -0600 Subject: [PATCH] Stop propagation --- src/components/SidebarNav/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"