fix(runtime-core): fix slot fragment bail check

This commit is contained in:
Evan You 2020-05-01 14:16:55 -04:00
parent 11f38d8a85
commit ac6a6f11ac

View 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(