fix(runtime-core/teleport): ensure the nested teleport can be unmounted correctly (#3629)
fix #3623
This commit is contained in:
@@ -243,12 +243,13 @@ export const TeleportImpl = {
|
||||
hostRemove(anchor!)
|
||||
if (shapeFlag & ShapeFlags.ARRAY_CHILDREN) {
|
||||
for (let i = 0; i < (children as VNode[]).length; i++) {
|
||||
const child = (children as VNode[])[i]
|
||||
unmount(
|
||||
(children as VNode[])[i],
|
||||
child,
|
||||
parentComponent,
|
||||
parentSuspense,
|
||||
true,
|
||||
optimized
|
||||
!!child.dynamicChildren
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user