8000 fix(Teleport): hydrate disabled Teleport with undefined target by linzhe141 · Pull Request #11235 · vuejs/core · GitHub
[go: up one dir, main page]

Skip to content

fix(Teleport): hydrate disabled Teleport with undefined target #11235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
wip: update
  • Loading branch information
linzhe141 committed Aug 9, 2024
commit 66b16c258ce69569baa0a4aaed975dedc1d0c66e
3 changes: 1 addition & 2 deletions packages/runtime-core/src/components/Teleport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ function hydrateTeleport(
}
}
updateCssVars(vnode)
}
if (!target && isTeleportDisabled(vnode.props)) {
} else if (isTeleportDisabled(vnode.props)) {
const targetNode = nextSibling(node)
if (vnode.shapeFlag & ShapeFlags.ARRAY_CHILDREN) {
vnode.anchor = hydrateChildren(
Expand Down
0