v-autocomplete
v-autocomplete copied to clipboard
Default item
From my point of view, it should allow a default text value if none of the options are acceptable. "Autocomplete" should suggest me some values, but I should have the option the choose OR NOT.
I tried to put a default value, not listed, in some many ways without success:
v-model="defaultValueNotListed"
v-model.sync="defaultValueNotListed"
value="defaultValueNotListed"
:value="defaultValueNotListed"
:input-attrs="{value:defaultValueNotListed)"
Seriously bad documentation. I kind of got it working though;
<v-autocomplete
:items="['Work', 'Home', 'Mobile', 'Fax']"
:wait="0"
:min-len="1"
:input-attrs="{class: 'input is-large'}"
v-model="number.type"
@change="(item)=>{ number.type = item }"
:get-label="(item)=>{ return item; }">
</v-autocomplete>