fix(ssr): don't warn for missing teleport target if disabled (#5135)
This commit is contained in:
parent
cd659fc86f
commit
da10dd7de9
@ -353,7 +353,9 @@ function renderTeleportVNode(
|
|||||||
const target = vnode.props && vnode.props.to
|
const target = vnode.props && vnode.props.to
|
||||||
const disabled = vnode.props && vnode.props.disabled
|
const disabled = vnode.props && vnode.props.disabled
|
||||||
if (!target) {
|
if (!target) {
|
||||||
|
if (!disabled) {
|
||||||
warn(`[@vue/server-renderer] Teleport is missing target prop.`)
|
warn(`[@vue/server-renderer] Teleport is missing target prop.`)
|
||||||
|
}
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
if (!isString(target)) {
|
if (!isString(target)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user