mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-25 10:45:41 +03:00
Fix submenu not opening
This commit is contained in:
parent
b8ec7d3c51
commit
d86023facd
1 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue