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

Can't use object as value in options #572

Closed
super-cache-money opened this issue Nov 6, 2015 · 3 comments
Closed

Can't use object as value in options #572

super-cache-money opened this issue Nov 6, 2015 · 3 comments

Comments

@super-cache-money
Copy link

This would be nice. It currently throws errors since I assume it uses the value for the key. Maybe we could allow specification of the key in options?

@JedWatson
Copy link
Owner

There's a valueKey prop for that

@JedWatson
Copy link
Owner

@super-cache-money I'm going to close this, please reopen if I've misunderstood what you're trying to do.

@ersefuril
Copy link

@super-cache-money is in fact speaking about a non-implemented feature.
What should be interesting is to pass Objects into this option's values :

var options = [
{ value: someObject, label: 'One' }
];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants