From 5d79af928c4f81ebad19d6b6c9871760e0cae001 Mon Sep 17 00:00:00 2001 From: Claire Date: Sat, 16 Nov 2024 21:39:12 +0100 Subject: [PATCH] Fix collapse icon opening the post (#2899) --- app/javascript/flavours/glitch/components/collapse_button.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/flavours/glitch/components/collapse_button.jsx b/app/javascript/flavours/glitch/components/collapse_button.jsx index 36cda45361..30008f1ff9 100644 --- a/app/javascript/flavours/glitch/components/collapse_button.jsx +++ b/app/javascript/flavours/glitch/components/collapse_button.jsx @@ -19,6 +19,7 @@ export const CollapseButton = ({ collapsed, setCollapsed }) => { if (e.button === 0) { setCollapsed(!collapsed); e.preventDefault(); + e.stopPropagation(); } }, [collapsed, setCollapsed]);