From eb39540b1be5558921efbe598192d59c14654705 Mon Sep 17 00:00:00 2001 From: Nico Schett <52858351+schettn@users.noreply.github.com> Date: Tue, 14 Sep 2021 01:05:20 +0000 Subject: [PATCH] fix(contextmenu): add portal to spawn the menu correctly --- .../snek-finder/src/components/organisms/Finder/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/snek-finder/src/components/organisms/Finder/index.tsx b/packages/snek-finder/src/components/organisms/Finder/index.tsx index 488535f..a64d991 100644 --- a/packages/snek-finder/src/components/organisms/Finder/index.tsx +++ b/packages/snek-finder/src/components/organisms/Finder/index.tsx @@ -458,7 +458,7 @@ const Finder: React.FC = ({mode = 'browser', ...props}) => { }, [isDragActive, isDragAccept, draggedFiles.length]) const finder = ( - <> + {contextMenu && ( = ({mode = 'browser', ...props}) => { onClose={itemRenameContextModal.onClose} onCancel={itemRenameContextModal.onClose} /> - + ) if (mode === 'selector' && props.onSelectorClose) {