mirror of https://github.com/vuejs/core.git
wip: update tests
This commit is contained in:
parent
c0cd7fc810
commit
b945079643
|
@ -61,8 +61,8 @@ export class TeleportFragment extends VaporFragment {
|
||||||
update(props: TeleportProps, children: Block): void {
|
update(props: TeleportProps, children: Block): void {
|
||||||
const parent = this.anchor.parentNode
|
const parent = this.anchor.parentNode
|
||||||
// teardown previous
|
// teardown previous
|
||||||
if (this.nodes && (parent || this.currentParent)) {
|
if (this.nodes && (this.currentParent || parent)) {
|
||||||
remove(this.nodes, this.currentParent! || parent)
|
remove(this.nodes, (this.currentParent || parent)!)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.nodes = children
|
this.nodes = children
|
||||||
|
|
Loading…
Reference in New Issue