[Vuejs]-Vuetify v-autocomplete showing [object Object] as initial value (before loading)

0👍

What you see in the form is not a "placeholder". It’s initial value of your v-autocomplete (form.estado = 0)

Reason you see [object Object] is because of property names item-text="Nome" item-value="CodCidade" on v-autocomplete doesn’t match with the initial value of a lookup "table" set in your data estado: [{ nome: 'Carregando', CodEstado: 0 }]

Correct: estado: [{ Nome: 'Carregando', CodEstado: 0 }] ("Nome" instead of "nome")

Leave a comment