]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(teleport): teleport should always be tracked as dynamic child for unmount
authorEvan You <yyx990803@gmail.com>
Fri, 1 May 2020 19:12:07 +0000 (15:12 -0400)
committerEvan You <yyx990803@gmail.com>
Fri, 1 May 2020 19:12:07 +0000 (15:12 -0400)
fix #1088

packages/runtime-core/src/vnode.ts

index efab10c6c8074e4ed0bdaeebde6e037ca6f691a0..508f0136bb1aa3250effcb888ebb948453f8c87a 100644 (file)
@@ -381,6 +381,7 @@ function _createVNode(
     patchFlag !== PatchFlags.HYDRATE_EVENTS &&
     (patchFlag > 0 ||
       shapeFlag & ShapeFlags.SUSPENSE ||
+      shapeFlag & ShapeFlags.TELEPORT ||
       shapeFlag & ShapeFlags.STATEFUL_COMPONENT ||
       shapeFlag & ShapeFlags.FUNCTIONAL_COMPONENT)
   ) {