Skip to content

Commit 778f3a5

Browse files
committed
fix(runtime-core): should not return early on text patchFlag
fix vnode updated hook on elements with dynamic text children
1 parent 571ed42 commit 778f3a5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/runtime-core/src/renderer.ts

-2
Original file line numberDiff line numberDiff line change
@@ -542,12 +542,10 @@ export function createRenderer<
542542

543543
// text
544544
// This flag is matched when the element has only dynamic text children.
545-
// this flag is terminal (i.e. skips children diffing).
546545
if (patchFlag & PatchFlags.TEXT) {
547546
if (n1.children !== n2.children) {
548547
hostSetElementText(el, n2.children as string)
549548
}
550-
return // terminal
551549
}
552550
} else if (!optimized && dynamicChildren == null) {
553551
// unoptimized, full diff

0 commit comments

Comments
 (0)