Attempt to fix menu confirm not opening

pull/182/head
Lim Chee Aun 2023-07-19 15:19:03 +08:00
rodzic 1f0d2eebe6
commit 7286a4e03b
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

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