Skip to content

Commit

Permalink
Fix wording to make it more clear that checkbox (input) supports defa…
Browse files Browse the repository at this point in the history
…ultChecked

Fix some confusion about why `input` would support `defaultChecked` (it's because you can have an input of type checkbox).  This has come up a couple of times (facebook#5633, facebook#5774) but both those PRs were wrong and it was just easier to fix it myself.
  • Loading branch information
jimfb committed Jan 4, 2016
1 parent bdcb69f commit a8c2c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/07-forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ If you want to initialize the component with a non-empty value, you can supply a

This example will function much like the **Uncontrolled Components** example above.

Likewise, `<input>` supports `defaultChecked` and `<select>` supports `defaultValue`.
Likewise, `<input type="checkbox">` and `<input type="radio">` support `defaultChecked`, and `<select>` supports `defaultValue`.

> Note:
>
Expand Down

0 comments on commit a8c2c80

Please sign in to comment.