1
1
/*!
2
- * Vue.js v2.5.5
2
+ * Vue.js v2.5.6
3
3
* (c) 2014-2017 Evan You
4
4
* Released under the MIT License.
5
5
*/
@@ -4968,7 +4968,7 @@ Object.defineProperty(Vue$3.prototype, '$ssrContext', {
4968
4968
}
4969
4969
} ) ;
4970
4970
4971
- Vue$3 . version = '2.5.5 ' ;
4971
+ Vue$3 . version = '2.5.6 ' ;
4972
4972
4973
4973
/* */
4974
4974
@@ -6675,7 +6675,6 @@ function model (
6675
6675
var modifiers = dir . modifiers ;
6676
6676
var tag = el . tag ;
6677
6677
var type = el . attrsMap . type ;
6678
- var attrsMap = el . attrsMap ;
6679
6678
6680
6679
if ( process . env . NODE_ENV !== 'production' ) {
6681
6680
// inputs with type="file" are read only and setting the input's
@@ -6686,20 +6685,6 @@ function model (
6686
6685
"File inputs are read only. Use a v-on:change listener instead."
6687
6686
) ;
6688
6687
}
6689
-
6690
- // warn if v-bind:value conflicts with v-model
6691
- if (
6692
- ( attrsMap [ 'v-bind:value' ] || attrsMap [ ':value' ] ) &&
6693
- type !== 'checkbox' &&
6694
- type !== 'radio' &&
6695
- tag !== 'select'
6696
- ) {
6697
- var vBindValue = attrsMap [ 'v-bind:value' ] ? 'v-bind:value' : ':value' ;
6698
- warn$1 (
6699
- vBindValue + " conflicts with v-model on the same element " +
6700
- 'because the latter already expands to a value binding internally'
6701
- ) ;
6702
- }
6703
6688
}
6704
6689
6705
6690
if ( el . component ) {
@@ -6797,6 +6782,19 @@ function genDefaultModel (
6797
6782
modifiers
6798
6783
) {
6799
6784
var type = el . attrsMap . type ;
6785
+
6786
+ // warn if v-bind:value conflicts with v-model
6787
+ if ( process . env . NODE_ENV !== 'production' ) {
6788
+ var value$1 = el . attrsMap [ 'v-bind:value' ] || el . attrsMap [ ':value' ] ;
6789
+ if ( value$1 ) {
6790
+ var binding = el . attrsMap [ 'v-bind:value' ] ? 'v-bind:value' : ':value' ;
6791
+ warn$1 (
6792
+ binding + "=\"" + value$1 + "\" conflicts with v-model on the same element " +
6793
+ 'because the latter already expands to a value binding internally'
6794
+ ) ;
6795
+ }
6796
+ }
6797
+
6800
6798
var ref = modifiers || { } ;
6801
6799
var lazy = ref . lazy ;
6802
6800
var number = ref . number ;
0 commit comments