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 authored Dec 13, 2023
1 parent a6503e3 commit 4addaa1
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 @@ -43,7 +43,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 4addaa1

Please sign in to comment.