Transition group bug when removing the last element #10508
Unanswered
wind50321
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use
create-vueto create my project.macOS 14.3.1, Chrome 122, Vue 3.4.21, Vite 5.1.5.
I use
<transition-group>to animate list items.When I remove the last item, the
-moveclass will be applied to the item.I set
transitiontoall(includingopacity) in-leave-activeclass, but onlytransformin-moveclass.The
transitionproperty setting in-moveoveerrides the one in-leave-active.So the last item disappears immediately, no transition effect in
opacity.I tested the Vue SFC Playground.
Vue doesn't apply the
-moveclass to the last item there.Beta Was this translation helpful? Give feedback.
All reactions