Skip to content

Commit c7359b2

Browse files
committed
fix Safari closing sidebar on accordion button click
1 parent 19e84f8 commit c7359b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/sidenav/src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export const AccordionButton: FunctionComponent<{
152152
title="Expand Section"
153153
disabled={disabled}
154154
{...props}
155+
onMouseDown={(e) => e.preventDefault()}
155156
sx={{
156157
appearance: 'none',
157158
display: 'flex',

0 commit comments

Comments
 (0)