-
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/Transitions] Enter transitions no longer happening #3456
Comments
+1 Also, the transition seems to be working fine with 1.7.16 plus vue 3.5.3. From 1.7.17 on, the enter transition breaks. |
Also able to repro this on my end. Otherwise, There have been a number of transition-related changes in Vue core over the past month. Not sure where to start on this. https://github.com/vuejs/core/issues?q=transition+created%3A%3E%3D2024-08-01 |
GH diff link won't jump to file automatically, but was able to isolate this issue to changes made to packages/@headlessui-vue/src/components/portal/portal.ts in Compare v1.7.16 node_modules/@headlessui/vue/dist/components/portal/portal.js
v1.7.17 node_modules/@headlessui/vue/dist/components/portal/portal.js
|
I would guess that an |
Is there any news on this issue? |
Same issue for me |
I will add the style of class="${enterFrom}" to TransitionChild |
If you don’t add it, there will be no entry animation. |
This is actually working great in my case. It's clearly a temporary hack to get it working over a fix, but allows me to keep Vue up to date. Thanks for the tip @ixycej12 |
Sorry, I'm not finding the correct way to add this, I tried the following but didn't work:
Do I have to include |
Ahhh I just found it was a reference to the class you are passing into enter-from attribute, so in my case
Worked like a charm! |
The current temporary solution, but there will be bugs. |
Thanks! That worked for me too! |
Any fixed version? |
Most recent Vue fixed the issue for me. |
the problem is still relevant |
Hey @RobinMalfait, Is there any news on this ? The temporary fix was working but is now broken with other libraries such as Vueuse. I had to revert back to 1.7.16 as mentioned in #1503 . Is there any news on HeadlessUI Vue generally speaking ? A lot of work seemed to have been put into the React version lately but Vue has been quiet for a while now. Can we expect the same kind of "2.0" update for HeadlessUI Vue in the coming weeks/months ? Thanks |
I think that this issue is linked with mine #3535 |
@Archetipo95 Yes it is. Only workarounds for now are : |
What package within Headless UI are you using?
@headlessui/vue
What version of that package are you using?
1.7.22
What browser are you using?
Chrome and Safari (mobile versions as well)
Reproduction URL
Codepen example here
Describe your issue
After upgrading to vue 3.5.x from 3.4.38, there are no longer any transition animations on enter. Well, instead of saying "no animations" it seems to be related to the transition duration (from very random tests I've done).
In the codepen provided, sometimes, for no apparent reason, the dialog will show just fine, but 99% of the time, there are no enter transition (or an extremely brief one).
From what I can see, Vue has changed some behaviour with the native transition and teleport. Maybe it has something to do with it ? https://github.com/vuejs/core/blob/main/CHANGELOG.md
Only solution for now : downgrade to vue 3.4.x.
Hopefully you can find and fix this issue !
The text was updated successfully, but these errors were encountered: