fix(compiler): fix v-for fragment openBlock argument

This commit is contained in:
Evan You
2020-02-10 18:19:49 -05:00
parent 47e984d31f
commit 12fcf9ab95
7 changed files with 24 additions and 23 deletions

View File

@@ -57,8 +57,9 @@ export const transformFor = createStructuralDirectiveTransform(
? PatchFlags.KEYED_FRAGMENT
: PatchFlags.UNKEYED_FRAGMENT
forNode.codegenNode = createSequenceExpression([
// fragment blocks disable tracking since they always diff their children
createCallExpression(helper(OPEN_BLOCK), [`false`]),
// v-for fragment blocks disable tracking since they always diff their
// children
createCallExpression(helper(OPEN_BLOCK), [`true`]),
createCallExpression(helper(CREATE_BLOCK), [
helper(FRAGMENT),
`null`,