Merge pull request #2007 from janhancic/better-docs-for-select-multiple

Add a 'note' about passing arrays into the `value` attribute
This commit is contained in:
Paul O’Shannessy
2014-09-03 15:50:15 -07:00
parent fd9b0a8de6
commit 70bc593b05
+4
View File
@@ -145,3 +145,7 @@ The selected `<option>` in an HTML `<select>` is normally specified through that
```
To make an uncontrolled component, `defaultValue` is used instead.
> Note:
>
> You can pass an array into the `value` attribute, allowing you to select multiple options in a `select` tag: `<select multiple={true} value={['B', 'C']}>`.