[Vuejs]-Vue Multiselect multiple conditional remove on select

0👍

Add a watcher on "values" array (passed in v-model), and use following logic in the watcher.

watch: {
  values: {
    handler() {
      const len = values.length;
      this.values.splice(len-1, 1);
    }
  }
}

This will not overwrite the value.

Leave a comment