@samitouri / QOS-React-2 / commits / c45fa8b581

Swapping defaultChecked and defaultValue

The current documentation states that the `<select>` tag supports `defaultChecked`, but it actually doesn't. I believe this documentation was meant to be written in the proposed order. Non-working fiddle using `defaultChecked`: http://jsfiddle.net/jqs1hsLr/1/ Working fiddle using `defaultValue`: http://jsfiddle.net/nv7z0yzL/1/

Ustin Zarubin committed Mar 26, 2015 at 16:42 UTC c45fa8b5813ef2f8332c39c51f1dc88f1acf5fcd
1 file changed +1 -1
docs/docs/07-forms.md
+1 -1
@@ -87,7 +87,7 @@ If you want to initialize the component with a non-empty value, you can supply a
87
88 This example will function much like the **Controlled Components** example above.
89
90 -Likewise, `<input>` supports `defaultValue` and `<select>` supports `defaultChecked`.
90 +Likewise, `<input>` supports `defaultChecked` and `<select>` supports `defaultValue`.
91
92
93 ## Advanced Topics