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-vue
to 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
-move
class will be applied to the item.I set
transition
toall
(includingopacity
) in-leave-active
class, but onlytransform
in-move
class.The
transition
property setting in-move
oveerrides 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
-move
class to the last item there.Beta Was this translation helpful? Give feedback.
All reactions