Hello, i'm new here.
I would like the v-model to be filled with the value field of the items, but it is filling with the selected object, is it possible to change that?
Consider items: items: [
{label: 'New York', id: 10
]
When I use the option-value="id" in the dropdown it populates the v-model with the list id. Otherwise it fills in with the item's object.
It is possible on Autocomplete too?
v-model on AutoComplete, Dropdown etc
-
- Posts: 560
- Joined: 23 Oct 2020, 09:28
Think the input type text, v-model gives the entered value. For Dropdown options property lists the all the items and v-model returns only selected items so the development side(developer side) could manage with selected data easily. That's the logic.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 14 guests