Browse Source

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

Add a 'note' about passing arrays into the `value` attribute
main
Paul O’Shannessy 11 years ago
parent
commit
20ed70077f
  1. 4
      docs/06-forms.md

4
docs/06-forms.md

@ -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']}>`.

Loading…
Cancel
Save