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):
input
event is emitted which duplicates tagsFor instance:
Vue.js
x
on Vue.js
==> tag remains, (BROKEN)Rails.js
==> Vue.js
, Rails.js
(OK)x
on Rails.js
==> Vue.js
, Vue.js
, Rails.js
(BROKEN)Here is a link to reproduce the problem
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
:
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.