I am using the vue multiselect package and when using the <multiselect> in place of the traditional <select> I am running into an issue. In my vue component I am passing in a prop which contains an array of object and each of those objects has various properties. With a traditional select in vue you can loop through the array using v-for and then pass the value based on object.id, is there a way to do this with the vue-multiselect package? Not sure if anyone has tried to use this as part of a form before but Its worth asking. Thanks.
My Vue File
<multiselect
v-model="users"
:options="usersArray"
:multiple="true"
:clear-on-select="false"
:preserve-search="false"
placeholder="select users"
label="name"
track-by="name"
:preselect-first="false"
id="users"
name="users[]"
></multiselect>
export default {
props: {
'usersArray': Array,
},
data(){
return {
users: [],
}
},