-
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
[Dialog] Leave transition not working when using :unmount="false"
(vue)
#2987
Comments
:unmount="false"
:unmount="false"
(vue)
Are there any updates on this being fixed? We have multiple cases where we use |
I ended up deciding to take a quick look at this... headlessui/packages/@headlessui-vue/src/components/transitions/transition.ts Lines 446 to 450 in 49c081d
In the linked code above, we see an if statement run on effect on the From adding some console log statements into the playground locally, I can see that upon setting the open value to false (e.g. after closing a I think we don't see this behaviour when not setting
I think what is happening is the |
Any update on this? |
I think that my issue #3535 is linked to this one |
What package within Headless UI are you using?
@headlessui/vue
What version of that package are you using?
v1.7.19
What browser are you using?
Chrome
Reproduction URL
https://stackblitz.com/edit/vitejs-vite-jh8put?file=src/components/Dialog.vue,src/App.vue&terminal=dev
Describe your issue
I've made a minimal reproduction following the example on https://headlessui.com/vue/dialog with
:unmount="false"
on theDialog
,TransitionRoot
andTransitionChild
components.The leave transition is not working unless the
ref
is true when first loading the page. You can see on reload it will work, but it won't when closing it the second time.The text was updated successfully, but these errors were encountered: