From: Evan You Date: Mon, 10 Feb 2020 17:06:36 +0000 (-0500) Subject: fix(runtime-core): should not return early on text patchFlag X-Git-Tag: v3.0.0-alpha.5~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=778f3a5e886a1a1136bc8b00b849370d7c4041be;p=thirdparty%2Fvuejs%2Fcore.git fix(runtime-core): should not return early on text patchFlag fix vnode updated hook on elements with dynamic text children --- diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index f4c68387f6..cee334a8fc 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