fix(runtime-core): dev root resolution should differentiate user comments vs v-if comments
fix #1704
This commit is contained in:
parent
578f25c34e
commit
355c052622
@ -235,7 +235,11 @@ const getChildRoot = (
|
||||
const rawChildren = vnode.children as VNodeArrayChildren
|
||||
const dynamicChildren = vnode.dynamicChildren as VNodeArrayChildren
|
||||
const children = rawChildren.filter(child => {
|
||||
return !(isVNode(child) && child.type === Comment)
|
||||
return !(
|
||||
isVNode(child) &&
|
||||
child.type === Comment &&
|
||||
child.children !== 'v-if'
|
||||
)
|
||||
})
|
||||
if (children.length !== 1) {
|
||||
return [vnode, undefined]
|
||||
|
Loading…
x
Reference in New Issue
Block a user