Answers for "vue multiselect doesn't update the selected array of obj after remove one"

0

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

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.
Posted by: Guest on March-31-2021

Code answers related to "vue multiselect doesn't update the selected array of obj after remove one"

Code answers related to "Javascript"

Browse Popular Code Answers by Language