diff --git a/client/src/Pages/Notifications/components/ActionMenu.jsx b/client/src/Pages/Notifications/components/ActionMenu.jsx
index e19ccecae..a26a9412d 100644
--- a/client/src/Pages/Notifications/components/ActionMenu.jsx
+++ b/client/src/Pages/Notifications/components/ActionMenu.jsx
@@ -22,7 +22,10 @@ const ActionMenu = ({ notification, onDelete }) => {
setAnchorEl(event.currentTarget);
};
- const handleClose = () => {
+ const handleClose = (event) => {
+ if (event) {
+ event.stopPropagation();
+ }
setAnchorEl(null);
};
@@ -32,7 +35,8 @@ const ActionMenu = ({ notification, onDelete }) => {
handleClose();
};
- const handleConfigure = () => {
+ const handleConfigure = (e) => {
+ e.stopPropagation();
navigate(`/notifications/${notification._id}`);
handleClose();
};
@@ -40,8 +44,9 @@ const ActionMenu = ({ notification, onDelete }) => {
return (
<>
e.stopPropagation()}
>
@@ -51,6 +56,8 @@ const ActionMenu = ({ notification, onDelete }) => {
open={open}
onClose={handleClose}
anchorOrigin={{ vertical: "bottom", horizontal: "right" }}
+ onClick={(e) => e.stopPropagation()}
+ onMouseDown={(e) => e.stopPropagation()}
>