Max
Max

Reputation: 13334

vue-form-generator & vue-multiselect: can't remove tags, duplicates them

I am using vue-form-generator with the field vueMultiselect (integration of vue-multiselect).

Adding tags works well, however deleting tags fails (clicking on x icon):

For instance:

Here is a link to reproduce the problem

enter image description here


Q: Is this failing because I misconfigured vueMultiselect (eg some options I need to set to prevent this behaviour)?

If not I'll just raise it as a bug

Versions:

Upvotes: 0

Views: 1004

Answers (1)

Pratik Patel
Pratik Patel

Reputation: 6978

Check out this codepen maybe this will help you.

Fiddle - https://jsfiddle.net/73ufp4ys/

According to this Github issue it's simply because the trackBy option was missing.

Upvotes: 2

Related Questions