Skip to content

Commit

Permalink
Stop propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerZeroMaster committed Dec 12, 2024
1 parent dc2508a commit d31c4bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SidebarNav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d31c4bd

Please sign in to comment.