Skip to content

Commit

Permalink
fix: reset commit
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin committed Jul 10, 2020
1 parent 18c537d commit acca2f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/componentRenderUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit acca2f8

Please sign in to comment.