Browse Source

[Docs] Apply the code Markdown syntax for the value prop (#3912)

main
Siarhei Bobryk 3 years ago
committed by GitHub
parent
commit
f0a9793dff
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/forms.md

2
content/docs/forms.md

@ -270,7 +270,7 @@ Also, since `setState()` automatically [merges a partial state into the current
## Controlled Input Null Value {#controlled-input-null-value}
Specifying the value prop on a [controlled component](/docs/forms.html#controlled-components) prevents the user from changing the input unless you desire so. If you've specified a `value` but the input is still editable, you may have accidentally set `value` to `undefined` or `null`.
Specifying the `value` prop on a [controlled component](/docs/forms.html#controlled-components) prevents the user from changing the input unless you desire so. If you've specified a `value` but the input is still editable, you may have accidentally set `value` to `undefined` or `null`.
The following code demonstrates this. (The input is locked at first but becomes editable after a short delay.)

Loading…
Cancel
Save