0
v-model isn’t recognizing that the value attribute of your “lat” input field has been programmatically changed. Instead, you can do something like this:
<input name="lat" type="text" id="lat" ref="myLatField" v-model="lat">
methods: {
handelSubmit: function(e) {
var vm = this;
data = {};
data['lat'] = this.$refs.myLatField.value;
...
- [Vuejs]-Why does old value not passed to vue component?
- [Vuejs]-How to use Bootstrap button-group radios with Vue's v-model?
Source:stackexchange.com