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 578f25c commit 355c052Copy full SHA for 355c052
packages/runtime-core/src/componentRenderUtils.ts
@@ -235,7 +235,11 @@ const getChildRoot = (
235
const rawChildren = vnode.children as VNodeArrayChildren
236
const dynamicChildren = vnode.dynamicChildren as VNodeArrayChildren
237
const children = rawChildren.filter(child => {
238
- return !(isVNode(child) && child.type === Comment)
+ return !(
239
+ isVNode(child) &&
240
+ child.type === Comment &&
241
+ child.children !== 'v-if'
242
+ )
243
})
244
if (children.length !== 1) {
245
return [vnode, undefined]
0 commit comments