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 e614d9c commit 1c9926fCopy full SHA for 1c9926f
src/compiler/transclude.js
@@ -70,11 +70,13 @@ function transcludeTemplate (el, options) {
70
frag.childNodes.length > 1 ||
71
// non-element template
72
replacer.nodeType !== 1 ||
73
- // when root node is <content>, <partial> or has
74
- // v-repeat, the instance could end up having
+ // when root node is <content>, <partial>, <component>
+ // or has v-repeat, the instance could end up having
75
// multiple top-level nodes, thus becoming a block
76
// instance.
77
- tag === 'content' || tag === 'partial' ||
+ tag === 'content' ||
78
+ tag === 'partial' ||
79
+ tag === 'component' ||
80
replacer.hasAttribute(config.prefix + 'repeat')
81
) {
82
return frag
0 commit comments