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

FLIP Animation not applied when first item spliced #2712

Closed
crutchcorn opened this issue Dec 3, 2020 · 3 comments · Fixed by #2716
Closed

FLIP Animation not applied when first item spliced #2712

crutchcorn opened this issue Dec 3, 2020 · 3 comments · Fixed by #2716
Labels
🐞 bug Something isn't working scope: transition

Comments

@crutchcorn
Copy link

Version

3.0.4

Reproduction link

https://codepen.io/crutchcorn/pen/ZEpbZKX

working_vs_broke

Steps to reproduce

https://v3.vuejs.org/guide/transitions-list.html#list-move-transitions

That's at this link:

https://codepen.io/team/Vue/pen/373b4429eb5769ae2e6d097fd954fd08

Change the remove method to match:

      this.items.splice(0, 1)

What is expected?

The first item in the array is removed and an animation smooths out the other items moving into the first spot

What is actually happening?

It jerkily moves the items to the first index

@crutchcorn
Copy link
Author

I have just ran this same issue against 2.6.12 and confirmed that it does indeed work:

https://codepen.io/crutchcorn/pen/oNzjOGm

@edison1105
Copy link
Member

edison1105 commented Dec 3, 2020

caused by this commit e2618a6 in this PR #2597.

@luwuer
Copy link
Contributor

luwuer commented Dec 3, 2020

It happend because transition-property: none will be added to el as inline style on the first frame, so a workaround way is using transition-property: all !important; to cover it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working scope: transition
Projects
None yet
4 participants