Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix context menu not opening on attachments

Abdullah Attac8f697c5b126
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}