-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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 not working with custom transition classes in Vue 3 migration build #6253
Comments
Here, we create the as OP has set one, it stays But here, we try and apply this (undefined) legacyclass) regardless of wether or not it's actually defined: The solution would likely be to just skip this step if the class is undefined (because we now have a custom class to apply anyway), i.e. like this: if (__COMPAT__ && legacyClassEnabled && legacyLeaveFromClass) {
addTransitionClass(el, legacyLeaveFromClass)
} this has to be fixed for the other legacy classes and their addition/removal as well. |
Any update on when this will be merged? Same here for us. |
Any update here? This is a huge thing if this is not solved, as this cannot be worked around. Even when deactivating the |
Vue version
3.2.37 (migration build)
Link to minimal reproduction
https://github.com/jamisuomalainen/vue-3-migration-build-transition-bug
Steps to reproduce
git clone git@github.com:jamisuomalainen/vue-3-migration-build-transition-bug.git
yarn install
in the project folderyarn serve
in the project foldersrc/App.vue
for the defined transition and transition classesWhat is expected?
On the first button click, the visible text should fade out in half a second.
On the second button click, the viisble text should fade in in half a second.
Subsequent button clicks repeat this cycle as it toggles the text visibility.
What is actually happening?
On the first button click: no transition happens and the text stays visible. Additionally, two warnings and one error is shown in Chrome's console:
Warning 1
Warning 2
Error
On subsequent button clicks: no transition happens and the text stays visible. Additionally, one warning and one error is shown in Chrome's console:
Warning
Error
System Info
Any additional comments?
Encountered this bug as we are currently in the progress of adding the Vue 3 migration build to our Vue 2.6.14 (Vue CLI 5.0.8) app.
I could not reproduce this issue on StackBlitz because (if I understood correctly) it does not run the app via the Vue CLI service (Webpack) and thus does not seem to use the migration build.
Please let me know if I can be of any more assistance or provide any more information regarding the subject.
The text was updated successfully, but these errors were encountered: