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 disabled = vnode.props && vnode.props.disabled
|
||||
if (!target) {
|
||||
warn(`[@vue/server-renderer] Teleport is missing target prop.`)
|
||||
if (!disabled) {
|
||||
warn(`[@vue/server-renderer] Teleport is missing target prop.`)
|
||||
}
|
||||
return []
|
||||
}
|
||||
if (!isString(target)) {
|
||||
|
Loading…
Reference in New Issue
Block a user