Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 45efc70

Browse files
authored
Merge pull request #976 from ralphstodomingo/patch-4
Update <Control/> docs
2 parents 6dc7348 + 10e3198 commit 45efc70

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/api/Control.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- [`model` (required)](#prop-model)
66
- [`mapProps`](#prop-mapProps)
77
- [`updateOn`](#prop-updateOn)
8+
- [`defaultValue`](#prop-defaultValue)
89
- [`debounce`](#prop-debounce)
910
- [`validators`](#prop-validators)
1011
- [`validateOn`](#prop-validateOn)
@@ -127,6 +128,12 @@ You can also specify `updateOn={['change', 'blur']}` as an array of one or more
127128
### Notes
128129
- Use the `changeAction` prop if you want to dispatch custom actions along with the `actions.change(...)` action.
129130

131+
## `defaultValue="..."` {#prop-defaultValue}
132+
_(Any)_: Sets the default value for the control. `boolean` for checkboxes, `string` for text input/textarea etc.
133+
134+
### Notes
135+
- https://github.com/davidkpiano/react-redux-form/issues/631
136+
130137
## `validators={{...}}` {#prop-validators}
131138
_(Object)_: A map where the keys are validation keys, and the values are the corresponding functions that determine the validity of each key, given the model's value.
132139

0 commit comments

Comments
 (0)