[Vuejs]-Pasting text including delimiters into Vuetify combobox does not separate the chips accordingly the delimiters?

3👍

You could bind and sync with the change of search-input, the rest is to split the search value and concat to the chips

search-input: Search value. Can be used with .sync modifier.

<v-combobox
  // ...
  :search-input.sync="search"
  // ...
>

// ... 

meowInput(e1) {
  if (this.search && this.search.split(",").length > 1) {
    this.chips = this.chips.concat(
      this.search.split(",").filter((term) => !this.chips.includes(term))
    );
    this.search = "";
  }
}

Forked demo

Edit Chips SO (forked)

👤hgb123

Leave a comment