Преглед изворни кода

fix(teleport): reset isMounted flag

daiwei пре 3 месеци
родитељ
комит
2b75011e2e
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      packages/runtime-vapor/src/components/Teleport.ts

+ 2 - 0
packages/runtime-vapor/src/components/Teleport.ts

@@ -257,6 +257,8 @@ export class TeleportFragment extends VaporFragment {
       this.nodes = []
       this.nodes = []
     }
     }
 
 
+    this.isMounted = false
+
     // remove anchors
     // remove anchors
     if (this.targetStart) {
     if (this.targetStart) {
       remove(this.targetStart!, this.target!)
       remove(this.targetStart!, this.target!)