From 567adbbad2d8a3e91391ef6bf857d47986c2a80f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Svarcas?= Date: Tue, 25 Jan 2022 11:07:29 -0300 Subject: [PATCH] Fix initialValue description --- docs/Inputs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Inputs.md b/docs/Inputs.md index 4fb19124c22..31a14f0183c 100644 --- a/docs/Inputs.md +++ b/docs/Inputs.md @@ -47,8 +47,8 @@ All input components accept the following props: 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: | Prop | Required | Type | Default | Description | -| -------------- | -------- | ---------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `initialValue` | Optional | `mixed` | - | Value to be set when the property is `null` or `undefined` | +| -------------- | -------- | ---------- | ------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `initialValue` | Optional | `mixed` | - | Value to be set when the property is `undefined` | | `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. | | `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. |