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!
This commit is contained in:
Emi Matchu 2021-04-30 12:48:49 -07:00
parent ee0185a846
commit f3e9df2d91

View file

@ -163,6 +163,7 @@ function PosePicker({
onClose={onUnlockFocus}
initialFocusRef={initialFocusRef}
isLazy
lazyBehavior="keepMounted"
>
{({ isOpen }) => (
<ClassNames>