Skip to content

Commit

Permalink
fix(teleport): not throw warning when teleport is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder committed May 2, 2024
1 parent 0e3d617 commit 6928901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/components/Teleport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const resolveTarget = <T = RendererElement>(
return null
} else {
const target = select(targetSelector)
if (!target) {
if (!target && !isTeleportDisabled(props)) {
__DEV__ &&
warn(
`Failed to locate Teleport target with selector "${targetSelector}". ` +
Expand Down

0 comments on commit 6928901

Please sign in to comment.