]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(transitionGroup): fix transition children resolving condition
authorEvan You <yyx990803@gmail.com>
Mon, 4 May 2020 21:09:19 +0000 (17:09 -0400)
committerEvan You <yyx990803@gmail.com>
Mon, 4 May 2020 21:09:19 +0000 (17:09 -0400)
packages/runtime-dom/src/components/TransitionGroup.ts

index 734ba69343f5d735a266da6ff0ea64b2f7c7bf03..f00168107b0402511ebf92607eda5e954fefddea 100644 (file)
@@ -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)
     }
   }