fix(transitionGroup): fix transition children resolving condition
This commit is contained in:
parent
6a0be882d4
commit
f05aeea7ae
@ -140,8 +140,8 @@ function getTransitionRawChildren(children: VNode[]): VNode[] {
|
|||||||
if (child.type === Fragment) {
|
if (child.type === Fragment) {
|
||||||
ret = ret.concat(getTransitionRawChildren(child.children as VNode[]))
|
ret = ret.concat(getTransitionRawChildren(child.children as VNode[]))
|
||||||
}
|
}
|
||||||
// comment should be skip, e.g. v-if
|
// comment placeholders should be skipped, e.g. v-if
|
||||||
if (child.type !== Comment) {
|
else if (child.type !== Comment) {
|
||||||
ret.push(child)
|
ret.push(child)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user