From da10dd7de91123666152d058f3c18da3e9e7f22a Mon Sep 17 00:00:00 2001 From: Kael Date: Wed, 11 May 2022 11:33:08 +1000 Subject: [PATCH] fix(ssr): don't warn for missing teleport target if disabled (#5135) --- packages/server-renderer/src/render.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/server-renderer/src/render.ts b/packages/server-renderer/src/render.ts index 17b5609f..4090ef9f 100644 --- a/packages/server-renderer/src/render.ts +++ b/packages/server-renderer/src/render.ts @@ -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)) {