Answers for "vue multiselect array is not updated"

0

vue multiselect array is not updated

Use @select (for select a new element from array) and @remove (for delete element from array)

Example: <multiselect @select="selectionChange" @remove="removeElement" required>

In vue methods add:
this.$forceUpdate(); will update the state

 methods: {
    removeElement() {
      this.$forceUpdate();
    },
    selectionChange() {
      this.$forceUpdate();
    },
 }
Posted by: Guest on March-31-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language