]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-core): should not return early on text patchFlag
authorEvan You <yyx990803@gmail.com>
Mon, 10 Feb 2020 17:06:36 +0000 (12:06 -0500)
committerEvan You <yyx990803@gmail.com>
Mon, 10 Feb 2020 17:06:36 +0000 (12:06 -0500)
fix vnode updated hook on elements with dynamic text children

packages/runtime-core/src/renderer.ts

index f4c68387f63913d9f3b432bb6798cd01b55d4c57..cee334a8fccc099a4959504bafbb540749280ee9 100644 (file)
@@ -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