2.5.5
https://github.com/VdustR/vue-issue-7084
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
Compiled successfully.
Got error:
- :value conflicts with v-model on the same element because the latter already expands to a value binding internally
The new improvements from v2.5.5
warn if both v-model and v-bind:value are used on same element
conflicts with Customizing Component v-model.
Downgrade the vue(vue-template-compiler exactly) in the reproduction to 2.5.4 and it will be compiled successfully.
BTW,
Production vue.js works fine -> CodePen
+1
The same error, version 2.5.6
@alex-malyita note the warning should appear if you use both :value and v-model on the same <input type="text"> element; the fix only removed the warning for custom components.
same error for the following snippet to create group radio boxes
<input type="radio" v-for="currency in currencies" name="booking_currencies" class="custom-control-input" v-model="currencySelected" :value="currency">
@chagamkamalakar make sure to update to latest version.
@yyx990803 .. the error still there .. current version [email protected]
@chagamkamalakar then please open a separate issue with a proper reproduction.
+1
@yyx990803 ... this error not coming up in new setup ... but coming up only in existing project...
please any help?
this error is gone now.... deleted node_moduels folder .. run npm install again ... it's gone now.
but i could see one problem now ...for custom components watcher for value props not getting called initially, but gets called when emitted from custom component ..
`
name="transport_mode"
v-for="(check, key) in checks"
:value="check.name"
:checked="check.value"
style="display: none"
/>
:key="key"
:label="check.name"
v-model="check.value"
` try that
Most helpful comment
@alex-malyita note the warning should appear if you use both
:valueandv-modelon the same<input type="text">element; the fix only removed the warning for custom components.