From: daiwei Date: Fri, 21 Mar 2025 08:23:27 +0000 (+0800) Subject: wip: update tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b945079643d15ccd34f167a0aebaa11cd78793fa;p=thirdparty%2Fvuejs%2Fcore.git wip: update tests --- diff --git a/packages/runtime-vapor/src/components/Teleport.ts b/packages/runtime-vapor/src/components/Teleport.ts index b0da345403..1402349e1a 100644 --- a/packages/runtime-vapor/src/components/Teleport.ts +++ b/packages/runtime-vapor/src/components/Teleport.ts @@ -61,8 +61,8 @@ export class TeleportFragment extends VaporFragment { update(props: TeleportProps, children: Block): void { const parent = this.anchor.parentNode // teardown previous - if (this.nodes && (parent || this.currentParent)) { - remove(this.nodes, this.currentParent! || parent) + if (this.nodes && (this.currentParent || parent)) { + remove(this.nodes, (this.currentParent || parent)!) } this.nodes = children