Vue-multiselect: Pre-selected values not selected in the vue-multiselect dropdown

Created on 20 Nov 2018  路  8Comments  路  Source: shentao/vue-multiselect

Why are my preselected options not selected when I open the select dropdown?

screenshot 2018-11-20 at 15 44 26

This is the value prop of the vue-multiselect - preselected values

screenshot 2018-11-20 at 15 46 56

and this is the options prop

screenshot 2018-11-20 at 15 47 10

What am I missing here? The values should be selected when I open the dropdown correct?

Now what happens is I can select the already preselected option again that was passed into value prop. See here:

screenshot 2018-11-20 at 15 52 24

Most helpful comment

Whoa! Been thinking about it a while ago and now that you mention I guess I should really consider doing something like https://www.buymeacoffee.com/. Thank you!

All 8 comments

Matching for objects is based on the property you pass to track-by. Make sure you pass id to track-by.

Matching for objects is based on the property you pass to track-by. Make sure you pass id to track-by.

@shentao uff life saver. Thanks a lot.

No problem. :) Btw. even if an issue is closed, you can still comment.

No problem. :) Btw. even if an issue is closed, you can still comment.

Yeah I know. We use your component a lot. Do you have a donate button somewhere to drop in for few beers?

Whoa! Been thinking about it a while ago and now that you mention I guess I should really consider doing something like https://www.buymeacoffee.com/. Thank you!

Sure you should do it!

Damian - I would buy you more than a cup of coffee - if I knew you were getting the $'s - so I encourage you to do it so we have a known good way of donating to you.

Thank you a lot! This is really encouraging to hear. 馃槂 Will work on it around December and let you both know.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bushcode picture bushcode  路  3Comments

MaxHalford picture MaxHalford  路  4Comments

focussing picture focussing  路  3Comments

xereda picture xereda  路  4Comments

wujekbogdan picture wujekbogdan  路  4Comments