-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swapping Dialog elements results in second Dialog not appearing (Vue) #2933
Comments
Hi, we still have the issue in the new versions of headlessUI |
I am experiencing this issue as well. It is seemingly coming from #2700 |
I am experiencing the same issue as well, or at least it seems to have the same cause. I am not using v-if, but when I am on a page where a Dialog can be opened (so the After debugging I found out that it is definitely caused by version 1.7.17 and in #2700 |
Sorry about that! One of our changes cause a timing issue when switching dialogs in the same "tick". Fixed in @headlessui/vue v1.7.21
|
What package within Headless UI are you using?
@headlessui/vue
What version of that package are you using?
1.7.17
What browser are you using?
Firefox 122, Safari 17.2
Reproduction URL
https://codesandbox.io/p/devbox/weathered-forest-v3lvy2
Describe your issue
I am using a pattern where modals are opened and closed with
v-if
(for reasons why, see #2027).One thing that I'm doing in several places is closing one modal while simultaneously opening another one (e.g.
state++
). As of v1.7.17, when trying to do that the second modal doesn't appear. See the linked reproduction for an example.I can confirm that this behavior is not present in v1.7.16.
The text was updated successfully, but these errors were encountered: