Vuetify: v-select ignores item-value

Created on 1 May 2017  路  5Comments  路  Source: vuetifyjs/vuetify

It seems like the v-select component is ignoring its item-value property: https://codepen.io/anon/pen/Mmmqez?editors=1111

When you select an item, the selected property gets set to an object ({ "text": "State 1", "id": 1 }), instead of just the id (1).

Am I doing something wrong?

bug

Most helpful comment

Yea, your assumption is correct in that input-value should alter what is returned in the array, will fix.

All 5 comments

item-value is to tell the select which property in your object is the items value, it doesn't change the output.

@johnleider Aah. But what is the difference between item-text and item-value? I thought of it like item-text is the actual text which is displayed, where as item-value would be the value of the select.

Yea, your assumption is correct in that input-value should alter what is returned in the array, will fix.

simillar issue with the autocomplete

We kindly ask users to not comment on closed/resolved issues. If you believe that this issue has not been correctly resolved, please create a new issue showing the regression or reach out to us in our Discord community.

Thank you for your contribution and interest in improving Vuetify.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Webifi picture Webifi  路  3Comments

milleraa picture milleraa  路  3Comments

paladin2005 picture paladin2005  路  3Comments

cawa-93 picture cawa-93  路  3Comments

ricardovanlaarhoven picture ricardovanlaarhoven  路  3Comments