Vue-multiselect: How to default to, or, select first item

Created on 18 Oct 2017  路  2Comments  路  Source: shentao/vue-multiselect

I'm not seeing how I can force selection of the first item by default?

or a function to know when the multiselect has finished loading?

Most helpful comment

Never mind, I was adding it to my v-model array incorrectly. As soon as I load my options array, I then push its first object to my v-model array and it selects it on screen.

would be nice to simply have an option to default "select first item"

All 2 comments

I've somewhat have it by adding the item to my array that is bound via v-model, and while on the vue-multiselect component it is selected, it's not visible on the page. shouldn't 2 way binding show the selected item on the page?

Never mind, I was adding it to my v-model array incorrectly. As soon as I load my options array, I then push its first object to my v-model array and it selects it on screen.

would be nice to simply have an option to default "select first item"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andreasvirkus picture andreasvirkus  路  3Comments

focussing picture focussing  路  3Comments

MaxHalford picture MaxHalford  路  4Comments

katranci picture katranci  路  3Comments

shsmad picture shsmad  路  3Comments