Skip to content

Commit

Permalink
fix(runtime-core): fix slot fragment bail check
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 1, 2020
1 parent 11f38d8 commit ac6a6f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/runtime-core/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,11 @@ function baseCreateRenderer(
optimized
)
} else {
if (patchFlag & PatchFlags.STABLE_FRAGMENT && dynamicChildren) {
if (
patchFlag > 0 &&
patchFlag & PatchFlags.STABLE_FRAGMENT &&
dynamicChildren
) {
// a stable fragment (template root or <template v-for>) doesn't need to
// patch children order, but it may contain dynamicChildren.
patchBlockChildren(
Expand Down

0 comments on commit ac6a6f1

Please sign in to comment.