fix(popover): fix frozen workspace popover (#2832)

This commit is contained in:
Waleed
2026-01-14 22:08:10 -08:00
committed by GitHub
parent 45bd1e8cd7
commit 26d0799d22
2 changed files with 3 additions and 9 deletions

View File

@@ -268,14 +268,7 @@ export function ContextMenu({
height: '1px',
}}
/>
<PopoverContent
ref={menuRef}
align='start'
side='bottom'
sideOffset={4}
onPointerDownOutside={(e) => e.preventDefault()}
onInteractOutside={(e) => e.preventDefault()}
>
<PopoverContent ref={menuRef} align='start' side='bottom' sideOffset={4}>
{/* Back button - shown only when in a folder */}
<PopoverBackButton />

View File

@@ -211,10 +211,11 @@ export function WorkspaceHeader({
}
/**
* Close context menu
* Close context menu and the workspace dropdown
*/
const closeContextMenu = () => {
setIsContextMenuOpen(false)
setIsWorkspaceMenuOpen(false)
}
/**