Fix: Custom menu item not automatically closing, affecting delete popup behavior. (#2771)

This commit is contained in:
Prateek Shourya 2023-11-14 23:05:30 +05:30 committed by sriram veeraghanta
parent 2d1536e44d
commit d158fe8193

View File

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