Skip to content

Commit 998d395

Browse files
fix(teleport): not throw warning when teleport is disabled
1 parent a8d0b1b commit 998d395

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/components/Teleport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const resolveTarget = <T = RendererElement>(
4343
return null
4444
} else {
4545
const target = select(targetSelector)
46-
if (!target) {
46+
if (!target && !isTeleportDisabled(props)) {
4747
__DEV__ &&
4848
warn(
4949
`Failed to locate Teleport target with selector "${targetSelector}". ` +

0 commit comments

Comments
 (0)