File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,18 @@ exports.compileRoot = function (el, options) {
205
205
// non-component, just compile as a normal element.
206
206
replacerLinkFn = compileDirectives ( el . attributes , options )
207
207
}
208
+ } else if ( process . env . NODE_ENV !== 'production' && containerAttrs ) {
209
+ // warn container directives for fragment instances
210
+ containerAttrs . forEach ( function ( attr ) {
211
+ if ( attr . name . indexOf ( 'v-' ) === 0 || attr . name === 'transition' ) {
212
+ _ . warn (
213
+ attr . name + ' is ignored on component ' +
214
+ '<' + options . el . tagName . toLowerCase ( ) + '> because ' +
215
+ 'the component is a fragment instance: ' +
216
+ 'http://vuejs.org/guide/components.html#Fragment_Instance'
217
+ )
218
+ }
219
+ } )
208
220
}
209
221
210
222
return function rootLinkFn ( vm , el , scope ) {
You can’t perform that action at this time.
0 commit comments