Skip to content

Commit ac6a6f1

Browse files
committed
fix(runtime-core): fix slot fragment bail check
1 parent 11f38d8 commit ac6a6f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/runtime-core/src/renderer.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,11 @@ function baseCreateRenderer(
913913
optimized
914914
)
915915
} else {
916-
if (patchFlag & PatchFlags.STABLE_FRAGMENT && dynamicChildren) {
916+
if (
917+
patchFlag > 0 &&
918+
patchFlag & PatchFlags.STABLE_FRAGMENT &&
919+
dynamicChildren
920+
) {
917921
// a stable fragment (template root or <template v-for>) doesn't need to
918922
// patch children order, but it may contain dynamicChildren.
919923
patchBlockChildren(

0 commit comments

Comments
 (0)