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
b60237b676
commit
7f42566207
@ -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 ${
|
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" : ""
|
active ? "bg-custom-background-80" : ""
|
||||||
} ${className}`}
|
} ${className}`}
|
||||||
onClick={onClick}
|
onClick={(e) => {
|
||||||
|
close();
|
||||||
|
onClick && onClick(e);
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</button>
|
</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user