From 5f0abafb91b0eba2d0f0cfbb266f0f8f32d1603b Mon Sep 17 00:00:00 2001 From: Claire Date: Sat, 16 Nov 2024 19:11:20 +0100 Subject: [PATCH] Fix collapse icon opening the post --- 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 36cda45361de5f..30008f1ff95155 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]);