Skip to content

Commit

Permalink
Fix collapse icon opening the post
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Nov 16, 2024
1 parent 3136079 commit 5f0abaf
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 5f0abaf

Please sign in to comment.