Browse Source

minor spelling change on the "controlled input null value" cookbook entry

main
Connor McSheffrey 11 years ago
parent
commit
3a903be5fe
  1. 2
      cookbook/cb-08-controlled-input-null-value tip.md
  2. 2
      cookbook/cb-08-controlled-input-null-value.md

2
cookbook/cb-08-controlled-input-null-value tip.md

@ -7,7 +7,7 @@ permalink: controlled-input-null-value-tip.html
With a controlled input component, specifying a `value` prevents the user from changing the input unless you desire so (more info [here](forms.html)).
You might have ran into a problem where you specified a `value` but the input can still be changed. In this case, you might have accidentally set your `value` to `undefined` or `null`. The snippet below shows this phenomenon; after a second, the text be edited.
You might have ran into a problem where you specified a `value` but the input can still be changed. In this case, you might have accidentally set your `value` to `undefined` or `null`. The snippet below shows this phenomenon; after a second, the text can be edited.
```js
/** @jsx React.DOM */

2
cookbook/cb-08-controlled-input-null-value.md

@ -9,7 +9,7 @@ permalink: controlled-input-null-value.html
You specified a `value` parameter for your form input, but the input value can still be modified, contrary to [what you'd expect](forms.html).
### Solution
You might have accidentally set your `value` to `undefined` or `null`. The snippet below shows this phenomenon; after a second, the text be edited.
You might have accidentally set your `value` to `undefined` or `null`. The snippet below shows this phenomenon; after a second, the text can be edited.
```js
/** @jsx React.DOM */

Loading…
Cancel
Save