diff --git a/packages/runtime-core/src/componentRenderUtils.ts b/packages/runtime-core/src/componentRenderUtils.ts index 41d44c53fc4..d46fe2576ad 100644 --- a/packages/runtime-core/src/componentRenderUtils.ts +++ b/packages/runtime-core/src/componentRenderUtils.ts @@ -159,7 +159,7 @@ export function renderComponentRoot( treeOwnerId && treeOwnerId !== scopeId ? treeOwnerId + '-s' : null if (scopeId || slotScopeId) { const extras: Data = {} - if (scopeId) extras[scopeId] = '' + if (scopeId && !root.scopeId) extras[scopeId] = '' if (slotScopeId) extras[slotScopeId] = '' root = cloneVNode(root, extras) }