vue multiselect array is not updated

Solutions on MaxInterview for vue multiselect array is not updated by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "vue multiselect array is not updated"
Roxane
10 Jan 2018
1Use @select (for select a new element from array) and @remove (for delete element from array)
2
3Example: <multiselect @select="selectionChange" @remove="removeElement" required>
4
5In vue methods add:
6this.$forceUpdate(); will update the state
7
8 methods: {
9    removeElement() {
10      this.$forceUpdate();
11    },
12    selectionChange() {
13      this.$forceUpdate();
14    },
15 }
16