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
Source:stackexchange.com