vue multiselect doesn 27t update the selected array of obj after remove one

Solutions on MaxInterview for vue multiselect doesn 27t update the selected array of obj after remove one by the best coders in the world

showing results for - "vue multiselect doesn 27t update the selected array of obj after remove one"
Federica
19 Oct 2020
1For updating the array from vue multiselect use @select and @remove events
2
3Example: <multiselect  @select="selectionChange" @remove="removeElement"> </multiselect>
4
5Into methods add the next functions
6methods: {
7    removeElement() {
8      this.$forceUpdate();
9    },
10    selectionChange() {
11      this.$forceUpdate();
12    },
13}
14
15this.$forceUpdate(); will update the state.