fix(compiler-ssr): generate correct children for transition-group

fix #2510
This commit is contained in:
Evan You
2020-11-27 12:22:14 -05:00
parent 55d99d729e
commit a5d6f8091e
7 changed files with 166 additions and 22 deletions

View File

@@ -471,7 +471,7 @@ export function getTransitionRawChildren(
}
// #1126 if a transition children list contains multiple sub fragments, these
// fragments will be merged into a flat children array. Since each v-for
// fragment may contain different static bindings inside, we need to de-top
// fragment may contain different static bindings inside, we need to de-op
// these children to force full diffs to ensure correct behavior.
if (keyedFragmentCount > 1) {
for (let i = 0; i < ret.length; i++) {