We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70ea76a commit f3f94e4Copy full SHA for f3f94e4
packages/runtime-core/src/componentRenderUtils.ts
@@ -42,7 +42,6 @@ export function renderComponentRoot(
42
): VNode {
43
const {
44
type: Component,
45
- parent,
46
vnode,
47
proxy,
48
withProxy,
@@ -149,9 +148,8 @@ export function renderComponentRoot(
149
148
}
150
151
// inherit scopeId
152
- const parentScopeId = parent && parent.type.__scopeId
153
- if (parentScopeId) {
154
- root = cloneVNode(root, { [parentScopeId]: '' })
+ if (vnode.scopeId) {
+ root = cloneVNode(root, { [vnode.scopeId]: '' })
155
156
// inherit directives
157
if (vnode.dirs) {
0 commit comments