Answers for "vue multiselect not updating"

0

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language