Skip to content

Commit b8ad6ea

Browse files
author
kingwl
committed
fix transition-group transition on empty array
1 parent a5a0073 commit b8ad6ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platforms/web/runtime/components/transition-group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default {
9090
updated () {
9191
const children = this.prevChildren
9292
const moveClass = this.moveClass || ((this.name || 'v') + '-move')
93-
if (!children.length || !this.hasMove(children[0].elm, moveClass)) {
93+
if (!children.length || !children.every(c => this.hasMove(c.elm, moveClass))) {
9494
return
9595
}
9696

0 commit comments

Comments
 (0)