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