Skip to content

Commit a675221

Browse files
committed
should not generate children for "is" component with inline-template (fix #3931)
1 parent 30bd34e commit a675221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/codegen/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function genSlot (el: ASTElement): string {
230230
}
231231

232232
function genComponent (el: any): string {
233-
const children = genChildren(el)
233+
const children = el.inlineTemplate ? null : genChildren(el)
234234
return `_h(${el.component},${genData(el)}${
235235
children ? `,${children}` : ''
236236
})`

0 commit comments

Comments
 (0)