Skip to content

Commit 5bc5981

Browse files
fix(runtime-core): fix child node unloading in v-for
1 parent b775b71 commit 5bc5981

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/runtime-core/src/renderer.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2119,8 +2119,9 @@ function baseCreateRenderer(
21192119
} else if (
21202120
dynamicChildren &&
21212121
// #1153: fast path should not be taken for non-stable (v-for) fragments
2122-
(type !== Fragment ||
2123-
(patchFlag > 0 && patchFlag & PatchFlags.STABLE_FRAGMENT))
2122+
type !== Fragment &&
2123+
patchFlag > 0 &&
2124+
patchFlag & PatchFlags.STABLE_FRAGMENT
21242125
) {
21252126
// fast path for block nodes: only need to unmount dynamic children.
21262127
unmountChildren(

0 commit comments

Comments
 (0)