I'm trying to make use of return-object
directive.
I have a list of objects:
[{"id":1,"profile_name":"Shoes store","quantity":55,"price_multiplier":0.5,"header":"This is a header","location":"New York","shipping_charge":5},{"id":2,"profile_name":"TV Store","quantity":8,"price_multiplier":1,"header":"This is a header. A little bit longer header than the header before so I can see how it behaves...","location":null,"shipping_charge":9}]
Both have id
and profile_name
.
I want to create a v-select
that returns the selected object.
<v-select v-model="template" :items="$store.state.listingTemplates"
:error-messages="formErrors.sku"
label="Template" outlined
hide-details
item-text="profile_name"
item-value="id"
return-object
></v-select>
It doesn't work - it uses header
attribute as a text
and I can't click/choose any of them.
Do you know where is the problem?
"vuetify": "^2.4.3",
– Milano