<v-autocomplete v-if="first.title == 'host'"
:items="host"
v-model="selected_host"
item-value="host_n"
outlined
hide-details
dense
></v-autocomplete>
I'd like to input new text which is not included in items.
autocomplete is just suggestion to user. But I can't input new data in v-autocomplete. Whenever I write new data, it was deleted.
You should use
v-combobox
(doc here) instead ofv-autocomplete
if you want the user to add its own valueIf you want to deal with multiple values, you can use the
multiple
attributes and passing an array to the v-model instead of a string (or an object if you use thereturn-object
param)