-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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 defaultText is not selectable #57
Comments
After experimenting with ways to handle this, I'm currently at the conclusion of in order to solve this, I would need to place a slot that you can manually iterate through options for. Here's why: With v-model, I'm able to notify the parent of changes made to the value property within the child. Let's say I only pass an options array-
and I use the selected property to determine what is selected. How do I notify the parent of the change? Do I keep a shallow copy in the component and only update that if the instance isn't bound by a v-model? I can do that, which would be an alternative to the slot, but is there a compelling use-case? As far as to enable the selection of the defaultText, it's technically not an option that is bound for selection, it is only there to represent an empty state. |
The use case would be for editing data. When selecting an object, you'd want to fill the form with object (selected) properties. |
This sounds reasonable, I'll prep this for v0.8.4 |
Added ability to enable default option. 7ffb6e0 |
Hello, please tell me why there is no property defaultDisabled in the latest version 0.17? Thanks in advance |
Update README.md with yarn link vuetify
There should be an option for
v-select
to enable the selection ofdefaultText
.Either that or an option to default to one of the items in
:options
.The text was updated successfully, but these errors were encountered: