Answer the question
In order to leave comments, you need to log in
How to display existing value in v-autocomplete component?
Small problem with autocomplete from Vuetify.
The fact is that if a value is written to the route.city variable by another method, the autocomplete does not display it.
That is, for example, when creating an order through autocomplete, I write down the value and all the rules, but when I update (by opening the created order), I cannot display the value in the autocomplete.
<v-autocomplete
v-model='route.city'
label='Город'
:items='route.cities'
item-text='name'
item-value='uuid'
@input.native='loadCities'
@change.native='loadCities'
return-object
cache-items
hide-no-data
></v-autocomplete>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question