-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
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
Custom Transition Component triggering ignoring done() inside leave hook #4702
Comments
I also thought about building a custom transition-group into a component. The reason for this is: |
Here is a fork which is working. http://codepen.io/schmidigital/pen/rjeRqv It works but I have to provide the id via html5 "data-..". I'm really interested why the first example doesn't work! |
Following updates in regards to this issue as I'm having exactly the same issue on a custom javascript animation, both enter and leave events seem to be triggered at the same time (as with your first codepen) |
A working version: http://codepen.io/posva/pen/YNGBNp?editors=1011 |
@posva If you put the blocks into one transition element, then it works. |
@smith64fx You're right, I skipped that comment, sorry 😁 |
Vue.js version
2.1.8
Reproduction Link
http://codepen.io/schmidigital/pen/oBxqNM
Steps to reproduce
Click on "Section 1"
Inside the console we see:
Pressing Button "Section 2"
The "Section 1" Content is leaving instantly, whereas "Section 2" is fading in.
Pressing Button "Section 1"
The "Content 2" section now is fading out whereas "Content 1" is fading in.
As we can see the hooks are also triggered in a different order.
What is Expected?
The Sections should fadein/fadeout same as from "Section 2" to "Section 1" instead of disappearing immediatly as seen from "Section 1" to "Section 2"
What is actually happening?
Depending on the order of the elements, they are animated differently.
If you put
in this order
Then the problem is vice versa!
The text was updated successfully, but these errors were encountered: