mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
Fix: Custom menu item not automatically closing, affecting delete popup behavior. (#2771)
This commit is contained in:
parent
2d1536e44d
commit
d158fe8193
@ -138,7 +138,10 @@ const MenuItem: React.FC<ICustomMenuItemProps> = (props) => {
|
||||
className={`w-full select-none truncate rounded px-1 py-1.5 text-left text-custom-text-200 hover:bg-custom-background-80 ${
|
||||
active ? "bg-custom-background-80" : ""
|
||||
} ${className}`}
|
||||
onClick={onClick}
|
||||
onClick={(e) => {
|
||||
close();
|
||||
onClick && onClick(e);
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</button>
|
||||
|
Loading…
Reference in New Issue
Block a user