fix(Teleport): component with multi roots should be removed when unmounted (#3157)

fix #3156
This commit is contained in:
HcySunYang
2021-03-25 23:02:50 +08:00
committed by GitHub
parent 0a583d5ca2
commit 776951315d
3 changed files with 40 additions and 4 deletions

View File

@@ -2108,7 +2108,14 @@ function baseCreateRenderer(
}
if (shapeFlag & ShapeFlags.TELEPORT) {
;(vnode.type as typeof TeleportImpl).remove(vnode, internals, doRemove)
;(vnode.type as typeof TeleportImpl).remove(
vnode,
parentComponent,
parentSuspense,
optimized,
internals,
doRemove
)
}
if (doRemove) {