We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0cd7fc commit b945079Copy full SHA for b945079
packages/runtime-vapor/src/components/Teleport.ts
@@ -61,8 +61,8 @@ export class TeleportFragment extends VaporFragment {
61
update(props: TeleportProps, children: Block): void {
62
const parent = this.anchor.parentNode
63
// teardown previous
64
- if (this.nodes && (parent || this.currentParent)) {
65
- remove(this.nodes, this.currentParent! || parent)
+ if (this.nodes && (this.currentParent || parent)) {
+ remove(this.nodes, (this.currentParent || parent)!)
66
}
67
68
this.nodes = children
0 commit comments