Select with item-value starting with dot doesn't return the selected value but entire object #1823
Labels
T: enhancement
Functionality that enhances existing features
wontfix
The issue is expected and will not be fixed
I have a v-select that is fed with an array of objects containing a
.key
property asitem-value
, when I select a value, it breaks the logic as the selected value set by the component is the entire object, not the property.key
. The issue seems to be with this piece of code:vuetify/src/util/helpers.js
Line 102 in ebdbfd3
If asking why I use .key as value... I use Google Firebase as backend and it uses as id for objects the property '.key', so I have objects like:
Steps to reproduce
Open the reproduction link (codepen) then select a value from v-select and notice the selection value
Versions
Vue 2.4
Vuetify 0.5.7
What is expected ?
When I select an item from select I expect to have the value in the model
What is actually happening ?
The model is set to the entire item object, not just the value
Reproduction Link
https://codepen.io/lucafaggianelli/pen/JrXZrR
The text was updated successfully, but these errors were encountered: