From: Evan You Date: Mon, 4 May 2020 21:09:19 +0000 (-0400) Subject: fix(transitionGroup): fix transition children resolving condition X-Git-Tag: v3.0.0-beta.9~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f05aeea7aec2e6cd859f40edc6236afd0ce2ea7d;p=thirdparty%2Fvuejs%2Fcore.git fix(transitionGroup): fix transition children resolving condition --- diff --git a/packages/runtime-dom/src/components/TransitionGroup.ts b/packages/runtime-dom/src/components/TransitionGroup.ts index 734ba69343..f00168107b 100644 --- a/packages/runtime-dom/src/components/TransitionGroup.ts +++ b/packages/runtime-dom/src/components/TransitionGroup.ts @@ -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) } }