mirror of https://github.com/Siphonay/mastodon
Fix collapse icon opening the post (#2899)
This commit is contained in:
parent
a62be22cb1
commit
5d79af928c
|
@ -19,6 +19,7 @@ export const CollapseButton = ({ collapsed, setCollapsed }) => {
|
||||||
if (e.button === 0) {
|
if (e.button === 0) {
|
||||||
setCollapsed(!collapsed);
|
setCollapsed(!collapsed);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
}, [collapsed, setCollapsed]);
|
}, [collapsed, setCollapsed]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue