File tree 1 file changed +7
-8
lines changed
packages/runtime-core/src/components
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,13 @@ const resolveTarget = <T = RendererElement>(
47
47
return null
48
48
} else {
49
49
const target = select ( targetSelector )
50
- if ( ! target ) {
51
- __DEV__ &&
52
- warn (
53
- `Failed to locate Teleport target with selector "${ targetSelector } ". ` +
54
- `Note the target element must exist before the component is mounted - ` +
55
- `i.e. the target cannot be rendered by the component itself, and ` +
56
- `ideally should be outside of the entire Vue component tree.` ,
57
- )
50
+ if ( __DEV__ && ! target && ! isTeleportDisabled ( props ) ) {
51
+ warn (
52
+ `Failed to locate Teleport target with selector "${ targetSelector } ". ` +
53
+ `Note the target element must exist before the component is mounted - ` +
54
+ `i.e. the target cannot be rendered by the component itself, and ` +
55
+ `ideally should be outside of the entire Vue component tree.` ,
56
+ )
58
57
}
59
58
return target as T
60
59
}
You can’t perform that action at this time.
0 commit comments