wip: update tests

This commit is contained in:
daiwei 2025-03-21 16:23:27 +08:00
parent c0cd7fc810
commit b945079643
1 changed files with 2 additions and 2 deletions

View 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