-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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-group transition on empty array #4900
Comments
i'm so sorry for my three pr |
hey, no need to apologise 😄 |
@posva |
@Kingwl Sorry for the delay. I believe it's a bug because if you wait for the first transition to finish there's no problem with the rest of the animations. It only happens if you add many items on the empty array without waiting for the first transition to finish. I'll check and see if I can help out 🙂 |
Vue.js version
2.1.10
Reproduction Link
https://jsfiddle.net/z11fe07p/686/#
Steps to reproduce
There seems to be an issue with the transition-group component when transitions is applied on each element iterating on a v-for with an initial empty array.
Whenever you add (push) an item to the array before the previous transition is completed all previous transition will stop. But if you wait for the first transition to finish - but only on the first instance - and then try to add items all works as expected. Similar, if you fill the initial array with 1 or more values, all works as expected.
What is Expected?
All items should continue to animate.
What is actually happening?
Animation stops for all elements except for the last one added.
It seems that Vue detects a change in position and therefore replace all transition classes with the move class.
The text was updated successfully, but these errors were encountered: