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

@@ -134,7 +134,7 @@ let currentBlock: VNode[] | null = null
//
// disableTracking is true when creating a fragment block, since a fragment
// always diffs its children.
export function openBlock(disableTracking?: boolean) {
export function openBlock(disableTracking = false) {
blockStack.push((currentBlock = disableTracking ? null : []))
}