Skip to content

Commit

Permalink
fix: shouldn't throw error on hydration Teleport mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin committed Jun 1, 2020
1 parent 2408a65 commit fb925d7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/runtime-core/src/components/Teleport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,8 @@ function hydrateTeleport(
optimized
)
}
;(target as TeleportTargetElement)._lpa = nextSibling(
vnode.targetAnchor as Node
)
;(target as TeleportTargetElement)._lpa =
vnode.targetAnchor && nextSibling(vnode.targetAnchor as Node)
}
}
return vnode.anchor && nextSibling(vnode.anchor as Node)
Expand Down

0 comments on commit fb925d7

Please sign in to comment.