Fix menu closing issue on file manager. #5615

Fix file path issue in import/export servers caused due to vulnerability fix.
This commit is contained in:
Aditya Toshniwal
2023-01-16 19:28:23 +05:30
committed by GitHub
parent e0b670f229
commit 53ae657cc9
4 changed files with 13 additions and 16 deletions

View File

@@ -72,7 +72,6 @@ export function PgMenu({open, className='', label, menuButton=null, ...props}) {
<ControlledMenu
state={state}
{...props}
portal
className={clsx(classes.menu, className)}
aria-label={label || 'Menu'}
data-state={state}

View File

@@ -147,6 +147,7 @@ function BrowserTree(props) {
open={Boolean(contextPos) && contextMenuItems.length !=0}
onClose={()=>setContextPos(null)}
label="context"
portal
>
{contextMenuItems.length !=0 && contextMenuItems.map((menuItem, i)=>{
const submenus = menuItem.getMenuItems();