vue multiselect not updating
For updating the array from vue multiselect use @select and @remove events
Example: <multiselect @select="selectionChange" @remove="removeElement"> </multiselect>
Into methods add the next functions
methods: {
removeElement() {
this.$forceUpdate();
},
selectionChange() {
this.$forceUpdate();
},
}
this.$forceUpdate(); will update the state.
Are there any code examples left?
New code examples in category Javascript