From 7286a4e03bbefc46bbad121eb50d81fe0cde7bba Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 19 Jul 2023 15:19:03 +0800 Subject: [PATCH] Attempt to fix menu confirm not opening --- src/components/status.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index 2524b0c0..722d2d8b 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -902,8 +902,9 @@ function Status({ // Higher than the backdrop zIndex: 1001, }, - onClick: () => { - menuInstanceRef.current?.closeMenu?.(); + onClick: (e) => { + if (e.target === e.currentTarget) + menuInstanceRef.current?.closeMenu?.(); }, }} align="end"