Skip to content

Commit 6928901

Browse files
fix(teleport): not throw warning when teleport is disabled
1 parent 0e3d617 commit 6928901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const resolveTarget = <T = RendererElement>(
4747
return null
4848
} else {
4949
const target = select(targetSelector)
50-
if (!target) {
50+
if (!target && !isTeleportDisabled(props)) {
5151
__DEV__ &&
5252
warn(
5353
`Failed to locate Teleport target with selector "${targetSelector}". ` +

0 commit comments

Comments
 (0)