From 4aece9d7039157f86bd99221493e907f5186c7b9 Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 31 Jul 2020 23:31:51 -0700 Subject: [PATCH] fix PosePicker portal for Chakra UI Next Oh oops, Chakra UI Next deprecates usePortal for the popover, so it wasn't escaping properly! Add a Portal component to let it escape the top area again! --- src/app/WardrobePage/PosePicker.js | 178 +++++++++++++++-------------- 1 file changed, 90 insertions(+), 88 deletions(-) diff --git a/src/app/WardrobePage/PosePicker.js b/src/app/WardrobePage/PosePicker.js index 04d38ae..db65bd0 100644 --- a/src/app/WardrobePage/PosePicker.js +++ b/src/app/WardrobePage/PosePicker.js @@ -10,6 +10,7 @@ import { PopoverArrow, PopoverContent, PopoverTrigger, + Portal, VisuallyHidden, useTheme, } from "@chakra-ui/core"; @@ -62,7 +63,6 @@ function PosePicker({ return ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - -
-
- -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + +
+
+ +
+
)}