mirror of https://github.com/vuejs/core.git
fix(runtime-vapor): add scope id for fallback component
This commit is contained in:
parent
c223eb2684
commit
3da5ecfb5f
|
@ -96,7 +96,14 @@ function fallbackComponent(
|
|||
|
||||
if (singleRoot) {
|
||||
instance.dynamicAttrs = true
|
||||
for (let i = 0; i < instance.scopeIds.length; i++) {
|
||||
const id = instance.scopeIds[i]
|
||||
el.setAttribute(id, '')
|
||||
}
|
||||
}
|
||||
|
||||
const scopeId = instance.type.__scopeId
|
||||
if (scopeId) el.setAttribute(scopeId, '')
|
||||
|
||||
return el
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue