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 authored Nov 16, 2024
1 parent 3136079 commit e8c108d
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 e8c108d

Please sign in to comment.