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 d9d42fd commit bb2faaa
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 bb2faaa

Please sign in to comment.