Skip to content

Commit 4a773e1

Browse files
authoredJan 25, 2022
Merge pull request #7139 from marmelab/fix-inputs-docs
[Doc] Fix inputs initialValue description
2 parents a03108f + 567adbb commit 4a773e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎docs/Inputs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ All input components accept the following props:
4747
React-admin uses [react-final-form](https://final-form.org/docs/react-final-form/getting-started) to control form inputs. Each input component also accepts all react-final-form [FieldProps](https://final-form.org/docs/react-final-form/types/FieldProps), including:
4848

4949
| Prop | Required | Type | Default | Description |
50-
| -------------- | -------- | ---------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
51-
| `initialValue` | Optional | `mixed` | - | Value to be set when the property is `null` or `undefined` |
50+
| -------------- | -------- | ---------- | ------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
51+
| `initialValue` | Optional | `mixed` | - | Value to be set when the property is `undefined` |
5252
| `format` | Optional | `Function` | - | Callback taking the value from the form state and the name of the field, and returns the input value. See the [Transforming Input Value](./Inputs.md#transforming-input-value-tofrom-record) section. |
5353
| `parse` | Optional | `Function` | - | Callback taking the input value and name of the field, and returns the value you want stored in the form state. See the [Transforming Input Value](./Inputs.md#transforming-input-value-tofrom-record) section. |
5454

0 commit comments

Comments
 (0)
Please sign in to comment.