v-autocomplete icon indicating copy to clipboard operation
v-autocomplete copied to clipboard

Default item

Open celorodovalho opened this issue 6 years ago • 1 comments

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)"

celorodovalho avatar Feb 13 '19 23:02 celorodovalho

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>

ciarans avatar Jun 06 '19 10:06 ciarans