0👍
Looking at the documentation for Vue Select you should use on-change and not :on-change. The On-Change Callback example in the documentation looks like this:
<v-select on-change="consoleCallback" :options="countries"></v-select>
and
methods: {
consoleCallback(val) {
console.dir(JSON.stringify(val))
},
alertCallback(val) {
alert(JSON.stringify(val))
}
}
0👍
Vue.set(vm.$data, ‘model’, response.data.model)
→
this.model = response.data.model
- [Vuejs]-Vue js add animate for element when route page
- [Vuejs]-"Trying to get property 'type' of non-object" when try to edit admin
0👍
i know its late, but for any one looking for the answer i found this thread on github here where the problem has been solved. the component has an “index” prop which you could set to “id” to get just the id value.
<v-select index="id" multiple label="name" :on-change="consoleCallback" :options="option" :value.sync="option.id" :value="id" v-model="users_id">
</v-select>
Source:stackexchange.com