Closed Jackardios closed 1 year ago
Thanks for reporting.
It does seem to be related to the mounted
state. I can reproduce it even without animated
.
@diegohaz Maybe this is related too: using open
state to mount/unmount the dialog doesn't work either https://stackblitz.com/edit/angular-p9nhel-lfu41p
@diegohaz Maybe this is related too: using
open
state to mount/unmount the dialog doesn't work either https://stackblitz.com/edit/angular-p9nhel-lfu41p
Yeah, open
and mounted
are the same when animated
is false
.
Current behavior
I have two animated dialogs. When I try to open a nested dialog it doesn't open but instead the current dialog closes. I use @ariakit/react@0.1.4
Steps to reproduce the bug
Expected behavior
Animated nested dialog should open
Workaround
This seems to be due to the fact that I am using the
mounted
state value. If the dialog is always mounted, no bug occurs: https://stackblitz.com/edit/angular-p9nhel-8dtraePossible solutions
No response