Skip to content

Commit

Permalink
fix(contextmenu): add portal to spawn the menu correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
schettn authored Sep 14, 2021
1 parent 20c410e commit eb39540
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ const Finder: React.FC<SnekFinderProps> = ({mode = 'browser', ...props}) => {
}, [isDragActive, isDragAccept, draggedFiles.length])

const finder = (
<>
<Portal>
{contextMenu && (
<Box
pos="absolute"
Expand Down Expand Up @@ -561,7 +561,7 @@ const Finder: React.FC<SnekFinderProps> = ({mode = 'browser', ...props}) => {
onClose={itemRenameContextModal.onClose}
onCancel={itemRenameContextModal.onClose}
/>
</>
</Portal>
)

if (mode === 'selector' && props.onSelectorClose) {
Expand Down

0 comments on commit eb39540

Please sign in to comment.