From c8f697c5b1261565fc9e37bf126483b59d96ee64 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Tue, 9 Apr 2024 11:57:32 +0500 Subject: [PATCH] web: fix context menu not opening on attachments --- apps/web/src/components/attachment/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/src/components/attachment/index.tsx b/apps/web/src/components/attachment/index.tsx index 88a59ae66..4b35c1088 100644 --- a/apps/web/src/components/attachment/index.tsx +++ b/apps/web/src/components/attachment/index.tsx @@ -132,6 +132,7 @@ export function Attachment({ sx={{ height: 30, ":hover": { bg: "hover" } }} onContextMenu={(e) => { e.preventDefault(); + e.stopPropagation(); Menu.openMenu(AttachmentMenuItems(item, status)); }} onClick={onSelected}