From f3e9df2d91026ab79dabae6c41ddc8cd7ca3e045 Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 30 Apr 2021 12:48:49 -0700 Subject: [PATCH] Fix PosePicker support modal It wouldn't open, because I'd set `isLazy` on the popover, so opening the modal would close and UNMOUNT the popover, which unmounted the modal! Now, we use the new `lazyBehavior` prop to keep it mounted _after_ the first time it opens. This is why I needed to upgrade Chakra! --- src/app/WardrobePage/PosePicker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/WardrobePage/PosePicker.js b/src/app/WardrobePage/PosePicker.js index 4e0dd9d..94d54e5 100644 --- a/src/app/WardrobePage/PosePicker.js +++ b/src/app/WardrobePage/PosePicker.js @@ -163,6 +163,7 @@ function PosePicker({ onClose={onUnlockFocus} initialFocusRef={initialFocusRef} isLazy + lazyBehavior="keepMounted" > {({ isOpen }) => (