11/*!
2- * Vue.js v2.5.5
2+ * Vue.js v2.5.6
33 * (c) 2014-2017 Evan You
44 * Released under the MIT License.
55 */
@@ -4968,7 +4968,7 @@ Object.defineProperty(Vue$3.prototype, '$ssrContext', {
49684968 }
49694969} ) ;
49704970
4971- Vue$3 . version = '2.5.5 ' ;
4971+ Vue$3 . version = '2.5.6 ' ;
49724972
49734973/* */
49744974
@@ -6675,7 +6675,6 @@ function model (
66756675 var modifiers = dir . modifiers ;
66766676 var tag = el . tag ;
66776677 var type = el . attrsMap . type ;
6678- var attrsMap = el . attrsMap ;
66796678
66806679 if ( process . env . NODE_ENV !== 'production' ) {
66816680 // inputs with type="file" are read only and setting the input's
@@ -6686,20 +6685,6 @@ function model (
66866685 "File inputs are read only. Use a v-on:change listener instead."
66876686 ) ;
66886687 }
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- }
67036688 }
67046689
67056690 if ( el . component ) {
@@ -6797,6 +6782,19 @@ function genDefaultModel (
67976782 modifiers
67986783) {
67996784 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+
68006798 var ref = modifiers || { } ;
68016799 var lazy = ref . lazy ;
68026800 var number = ref . number ;
0 commit comments