From 778f3a5e886a1a1136bc8b00b849370d7c4041be Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 10 Feb 2020 12:06:36 -0500 Subject: [PATCH] fix(runtime-core): should not return early on text patchFlag fix vnode updated hook on elements with dynamic text children --- packages/runtime-core/src/renderer.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index f4c68387f63..cee334a8fcc 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -542,12 +542,10 @@ export function createRenderer< // text // This flag is matched when the element has only dynamic text children. - // this flag is terminal (i.e. skips children diffing). if (patchFlag & PatchFlags.TEXT) { if (n1.children !== n2.children) { hostSetElementText(el, n2.children as string) } - return // terminal } } else if (!optimized && dynamicChildren == null) { // unoptimized, full diff