Skip to content
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

Supply value as a string rather than an object #22

Closed
alexcroox opened this issue Mar 7, 2017 · 1 comment
Closed

Supply value as a string rather than an object #22

alexcroox opened this issue Mar 7, 2017 · 1 comment

Comments

@alexcroox
Copy link

alexcroox commented Mar 7, 2017

I'd like to be able to use :selected-option="value" where value is just the value for the select, rather than an object with the text + value.

Currently I have to store both the text and value in a cookie in order to correctly pre-fill the select on next page load. This is frustrating when text for that value could change over time and would therefore fall out of sync with my cookie.

@moreta
Copy link
Owner

moreta commented May 30, 2017

Use ModelSelect component.
Added at v2.3.8

@moreta moreta closed this as completed May 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants