]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
wip: update tests
authordaiwei <daiwei521@126.com>
Fri, 21 Mar 2025 08:23:27 +0000 (16:23 +0800)
committerdaiwei <daiwei521@126.com>
Fri, 21 Mar 2025 08:23:27 +0000 (16:23 +0800)
packages/runtime-vapor/src/components/Teleport.ts

index b0da34540369a91121d238e29702a96bb7554461..1402349e1a447f69347d69037cddff05c7954a48 100644 (file)
@@ -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