File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ export class VueElement
224
224
/**
225
225
* @internal
226
226
*/
227
- _teleportTargets ?: Set < HTMLElement >
227
+ _teleportTargets ?: Set < Element >
228
228
229
229
private _connected = false
230
230
private _resolved = false
@@ -338,6 +338,10 @@ export class VueElement
338
338
this . _app && this . _app . unmount ( )
339
339
if ( this . _instance ) this . _instance . ce = undefined
340
340
this . _app = this . _instance = null
341
+ if ( this . _teleportTargets ) {
342
+ this . _teleportTargets . clear ( )
343
+ this . _teleportTargets = undefined
344
+ }
341
345
}
342
346
} )
343
347
}
@@ -667,7 +671,7 @@ export class VueElement
667
671
* @internal
668
672
*/
669
673
private _getSlots ( ) : HTMLSlotElement [ ] {
670
- const roots : HTMLElement [ ] = [ this ]
674
+ const roots : Element [ ] = [ this ]
671
675
if ( this . _teleportTargets ) {
672
676
roots . push ( ...this . _teleportTargets )
673
677
}
You can’t perform that action at this time.
0 commit comments