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 782b66c commit 54fd708Copy full SHA for 54fd708
src/platforms/web/compiler/directives/model.js
@@ -130,9 +130,11 @@ function genDefaultModel (
130
const type = el.attrsMap.type
131
132
// warn if v-bind:value conflicts with v-model
133
+ // except for inputs with v-bind:type
134
if (process.env.NODE_ENV !== 'production') {
135
const value = el.attrsMap['v-bind:value'] || el.attrsMap[':value']
- if (value) {
136
+ const typeBinding = el.attrsMap['v-bind:type'] || el.attrsMap[':type']
137
+ if (value && !typeBinding) {
138
const binding = el.attrsMap['v-bind:value'] ? 'v-bind:value' : ':value'
139
warn(
140
`${binding}="${value}" conflicts with v-model on the same element ` +
0 commit comments