]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-core): fix slot fragment bail check
authorEvan You <yyx990803@gmail.com>
Fri, 1 May 2020 18:16:55 +0000 (14:16 -0400)
committerEvan You <yyx990803@gmail.com>
Fri, 1 May 2020 18:16:55 +0000 (14:16 -0400)
packages/runtime-core/src/renderer.ts

index fe523cd8f97b4210652a040b06737c26d789ffc5..6cfdc85cc43ffb49bbee09edc5f7638e4e14b5dc 100644 (file)
@@ -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(