Skip to content

Commit

Permalink
fix(transitionGroup): fix transition children resolving condition
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 4, 2020
1 parent 6a0be88 commit f05aeea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-dom/src/components/TransitionGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ function getTransitionRawChildren(children: VNode[]): VNode[] {
if (child.type === Fragment) {
ret = ret.concat(getTransitionRawChildren(child.children as VNode[]))
}
// comment should be skip, e.g. v-if
if (child.type !== Comment) {
// comment placeholders should be skipped, e.g. v-if
else if (child.type !== Comment) {
ret.push(child)
}
}
Expand Down

0 comments on commit f05aeea

Please sign in to comment.