[Vuejs]-V-select doesn't recognize label prop

0👍

If I am understanding you correctly, you want the text attribute of the selected option to be displayed as the label? If so, you will need to pass the data of the selected option back to the <v-select>. You can emit an event on change to change label to the text value, but make sure you bind to the label attribute using either v-bind:label=textor the shorthand :label=text

0👍

I just had the same problem and solved it by passing the name of the label as a string.

<v-select :options="warehouses" :label="'name'"></v-select>

or you could do it with an html attribute without vue binding.

<v-select :options="warehouses" label="name"></v-select>

Cheers,

Leave a comment