File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1273,5 +1273,5 @@ export interface ComponentCustomElementInterface {
1273
1273
/**
1274
1274
* @internal attached by the nested Teleport when shadowRoot is false.
1275
1275
*/
1276
- _teleportTargets ?: RendererElement [ ]
1276
+ _teleportTargets ?: Set < RendererElement >
1277
1277
}
Original file line number Diff line number Diff line change @@ -147,8 +147,8 @@ export const TeleportImpl = {
147
147
if ( parentComponent && parentComponent . isCE ) {
148
148
; (
149
149
parentComponent . ce ! . _teleportTargets ||
150
- ( parentComponent . ce ! . _teleportTargets = [ ] )
151
- ) . push ( target )
150
+ ( parentComponent . ce ! . _teleportTargets = new Set ( ) )
151
+ ) . add ( target )
152
152
}
153
153
154
154
if ( ! disabled ) {
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 ?: HTMLElement [ ]
227
+ _teleportTargets ?: Set < HTMLElement >
228
228
229
229
private _connected = false
230
230
private _resolved = false
You can’t perform that action at this time.
0 commit comments