Fix submenu not opening

This commit is contained in:
Lim Chee Aun 2023-03-22 14:11:38 +08:00
parent b8ec7d3c51
commit d86023facd

View file

@ -536,8 +536,10 @@ function RelatedActions({ info, instance, authenticated }) {
// Higher than the backdrop
zIndex: 1001,
},
onClick: () => {
menuInstanceRef.current?.closeMenu?.();
onClick: (e) => {
if (e.target === e.currentTarget) {
menuInstanceRef.current?.closeMenu?.();
}
},
}}
align="center"