fix: IconPicker unclosable on mobile

This commit is contained in:
Tom Moor
2021-09-26 15:26:10 -07:00
parent 95dbc8168c
commit c00001086a
4 changed files with 42 additions and 26 deletions

View File

@@ -20,6 +20,7 @@ type Props = {|
children: React.Node,
onOpen?: () => void,
onClose?: () => void,
hide?: () => void,
|};
export default function ContextMenu({
@@ -68,7 +69,7 @@ export default function ContextMenu({
</Menu>
{(rest.visible || rest.animating) && (
<Portal>
<Backdrop />
<Backdrop onClick={rest.hide} />
</Portal>
)}
</>