New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v-select doesn't have a placeholder #1382
Comments
In the documentation, placeholder is a prop for v-select, but it's not actually working for me. |
When creating an issue you should be provided with boilerplate for the ticket. This is important for myself and others to properly address your issue. Please reopen this with the required information, thank you. |
There is actually a typo and placeholder is |
@johnleider Please reopen the issue. |
Currently I am able to setup default values (placeholders ) with this sample code https://codepen.io/anon/pen/vJQYOy. So setting When I tried to use The way this can be the most usable in my opinion is if we can use The reason is we can get placeholder value from complex nested objects located in vuex store or wherever. Example use template: <v-select
v-bind:items="selector-items"
label="Item selector"
placeholder="getSelectorPlaceholder"
></v-select> script: data () {
return {
selector-items: [{
'text': 'item1',
'value': '1'
}, {
'text': 'item2',
'value': '1'
}
],
placeholderItem: '2' //find value in selector items
}
}
computed: {
getSelectorPlaceholder: function () {
return this.placeholderItem
}
} |
Thank you John 👍 |
Steps to reproduce
Set up placeholder prop on
v-select
Versions
0.14.8
What is expected?
Placeholder should be visible like in
v-text-field
.What is actually happening?
Placeholder is missing.
Reproduction Link
https://codepen.io/bartoszmagier/pen/MvzgGG
The text was updated successfully, but these errors were encountered: