Skip to content

[Documentation] Document usage of <select> #571

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

Closed
vjeux opened this issue Nov 20, 2013 · 2 comments
Closed

[Documentation] Document usage of <select> #571

vjeux opened this issue Nov 20, 2013 · 2 comments

Comments

@vjeux
Copy link
Contributor

vjeux commented Nov 20, 2013

@leifdenby came to IRC as he couldn't get <select><options>...</select> working. It wasn't clear to me that we should use value={...} on the <select> itself rather than selected={...} on <option>s. We need to make the doc clearer here.

Here's a JSFiddle that gives 3 examples: Controlled, Controller with LinkState and Uncontrolled <select>

http://jsfiddle.net/5734W/

@chenglou
Copy link
Contributor

Is this format used because it's easier to work with in React, or is there some other reason?
Also, I could take on this. Without mentioning LinkState right?
Should this also be mentioned in DOM Inconsistencies?

@plievone
Copy link
Contributor

plievone commented Dec 2, 2013

Fixed in #581 ?

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

4 participants