web: fix context menu not opening on attachments

This commit is contained in:
Abdullah Atta
2024-04-09 11:57:32 +05:00
parent 48a4d67c13
commit c8f697c5b1

View File

@@ -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}