mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
fix(popover): fix frozen workspace popover (#2832)
This commit is contained in:
@@ -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 />
|
||||
|
||||
|
||||
@@ -211,10 +211,11 @@ export function WorkspaceHeader({
|
||||
}
|
||||
|
||||
/**
|
||||
* Close context menu
|
||||
* Close context menu and the workspace dropdown
|
||||
*/
|
||||
const closeContextMenu = () => {
|
||||
setIsContextMenuOpen(false)
|
||||
setIsWorkspaceMenuOpen(false)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user