Skip to content

Commit ea39d9f

Browse files
committed
fix static node v-for nested check
1 parent 5d0999a commit ea39d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/optimizer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function markStaticRoots (node: ASTNode, isInFor: boolean) {
5757
}
5858
if (node.children) {
5959
for (let i = 0, l = node.children.length; i < l; i++) {
60-
markStaticRoots(node.children[i], !!node.for)
60+
markStaticRoots(node.children[i], isInFor || !!node.for)
6161
}
6262
}
6363
}

0 commit comments

Comments
 (0)