Attempt to fix menu confirm not opening

This commit is contained in:
Lim Chee Aun 2023-07-19 15:19:03 +08:00
parent 1f0d2eebe6
commit 7286a4e03b

View file

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