Fix collapse icon opening the post (#2899)

This commit is contained in:
Claire 2024-11-16 21:39:12 +01:00
parent a62be22cb1
commit 5d79af928c
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ export const CollapseButton = ({ collapsed, setCollapsed }) => {
if (e.button === 0) {
setCollapsed(!collapsed);
e.preventDefault();
e.stopPropagation();
}
}, [collapsed, setCollapsed]);