Vue-multiselect: Selected value is not getting removed

Created on 13 Apr 2018  路  9Comments  路  Source: shentao/vue-multiselect

Using library for searchable multiselect value, When I am trying to remove the selected value instead of deleting the value it is creating another entry of the value. Please review the below code

needs repro

Most helpful comment

@varadekd I had the same behaviour when using multiple=true, and it was solved adding the track-by="name" option. Hope it helps.

All 9 comments

No code was provided. Please create a reproduction jsfiddle.

@shentao Sorry for the delayed reply here is the code

This is the basic I am using to display multiple selected and then after delete a selected entry. I am sorry that I cannot provide you with the jsfiddle link

@varadekd I had the same behaviour when using multiple=true, and it was solved adding the track-by="name" option. Hope it helps.

@davidjr82 Thanks! It helps a lot!

@davidjr82 Thanks, It worked please close the issuej

@davidjr82 That helped me too. Thank you!

@davidjr82 Thanks! This fixed the issue.

@shentao I think this issue can be closed with this explanaition. Maybe it should be included in the docs.

Thanks!

Having to use track-by when options are objects is already present in docs several times.

Was this page helpful?
0 / 5 - 0 ratings