Skip to content

Commit f05aeea

Browse files
committed
fix(transitionGroup): fix transition children resolving condition
1 parent 6a0be88 commit f05aeea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-dom/src/components/TransitionGroup.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ function getTransitionRawChildren(children: VNode[]): VNode[] {
140140
if (child.type === Fragment) {
141141
ret = ret.concat(getTransitionRawChildren(child.children as VNode[]))
142142
}
143-
// comment should be skip, e.g. v-if
144-
if (child.type !== Comment) {
143+
// comment placeholders should be skipped, e.g. v-if
144+
else if (child.type !== Comment) {
145145
ret.push(child)
146146
}
147147
}

0 commit comments

Comments
 (0)