Skip to content
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

Transition broken with vue v3.4.15 #2939

Open
laserhybiz opened this issue Jan 23, 2024 · 2 comments
Open

Transition broken with vue v3.4.15 #2939

laserhybiz opened this issue Jan 23, 2024 · 2 comments

Comments

@laserhybiz
Copy link

What package within Headless UI are you using?

@headlessui/vue

What version of that package are you using?

For example: v1.7.17

What browser are you using?

Chrome

Reproduction URL

https://stackblitz.com/edit/vitejs-vite-rjomgn?file=src%2FApp.vue

Describe your issue

Transition doesn't work for entering if there is a vue TransitionGroup with a template ref as the children (this is my specific use case, not sure when else it happens - if I remove the ref it works properly)
This started happening since vue 3.4.15

@Jarzka
Copy link

Jarzka commented Jan 26, 2024

I also noticed that my "Fade modal background to black" transitions stopped working correctly after updating from "@headlessui/react": "1.7.17" to "@headlessui/react": "1.7.18"

The transition itself works fine, i.e. the background fades to black, but after the animation is finished, the "Enter" and "EnterTo" classes of the transitions are taken out, which causes the black background to disappear. In previous version, the "EnterTo" class remains after the animation has finnished, keeping the background faded black.

EDIT: It seems that in my case the bug can be fixed by taking the styles from the "EnterTo" animation and copypasting them to the modal background class. In this way, after the "EnterTo" animation class has been taken away, the styles from the background class remain, because they are already introduced in the modal background class.

@zetorama
Copy link

@Jarzka ,

I also noticed that my "Fade modal background to black" transitions stopped working correctly after updating from "@headlessui/react": "1.7.17" to "@headlessui/react": "1.7.18"

I have a similar issue after updating. Before i was using entered prop on <Transition/> to add transform-none (needed for another component to behave) and on 1.7.18 it doesn't seem to stay.

Thanks for the tip to shuffle class names with what the underlying component has by default, that seems to solve my issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants