https://jsfiddle.net/AlexanderHyriavets/caxfLs4u/5/
Emits 'input' when the value changes
Does not emit 'input' event when the value changes
Description of the 'input' event in docs says: Emitted after this.value changes. But in this particular case it is not the truth.
Maybe the resolution should be to change the documentation to state "Emitted after this.value is changed by user action." I am currently relying on the fact that this event only fires on user actions.
https://github.com/shentao/vue-multiselect/issues/1191 is related. When using :taggable="true", the addTag event handler you provide is responsible for updating the value.
See https://vue-multiselect.js.org/#sub-tagging
The event handler should add the received tag to both the options list and the value.
@dwieringa & @alexhyriavets
Have you found a workaround for this by any chance?
Edit:
In case anyone is wondering if you set the ref attribute on the multiselect element
you can use the following after you set the value in programmaically to trigger the input event.
this.$refs.multiselectReference.$emit("input", your value)
Most helpful comment
@dwieringa & @alexhyriavets
Have you found a workaround for this by any chance?
Edit:
In case anyone is wondering if you set the
refattribute on the multiselect elementyou can use the following after you set the value in programmaically to trigger the
inputevent.this.$refs.multiselectReference.$emit("input", your value)