Skip to content

Commit

Permalink
Fix collapse icon opening the post (#2899)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Nov 24, 2024
1 parent a62be22 commit 5d79af9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const CollapseButton = ({ collapsed, setCollapsed }) => {
if (e.button === 0) {
setCollapsed(!collapsed);
e.preventDefault();
e.stopPropagation();
}
}, [collapsed, setCollapsed]);

Expand Down

0 comments on commit 5d79af9

Please sign in to comment.