Open vezaynk opened 11 months ago
Lets say I have a button that I want to use for
* closing a modal (if open) * opening a different modal
The way might it could would look like is:
hide(MyModal1).then(() => { show(MyModal2) })
This code works if
MyModal1
is current displayed. If it is not, then thehide()
promise simply never resolves.Expected result:
* MyModal1 closes if open, and MyModal2 is shown
Actual result:
* MyModal2 does not open if MyModal1 was not initially visible
Same issue is with Chakra Modals. hide
never resolves.
Lets say I have a button that I want to use for
The way might it could would look like is:
This code works if
MyModal1
is current displayed. If it is not, then thehide()
promise simply never resolves.Expected result:
Actual result: