diff --git a/docs/Inputs.md b/docs/Inputs.md index a73d456024b..7d911320985 100644 --- a/docs/Inputs.md +++ b/docs/Inputs.md @@ -376,7 +376,7 @@ const dateParser = value => { ``` -**Tip:** To spread a conversion behaviour to your whole application, you can import a `react-admin`component then re-export them with their `transform` and/or `parse` props set. +**Tip:** To spread a conversion behaviour to your whole application, you can import a `react-admin`component then re-export them with their `format` and/or `parse` props set. ```jsx import * as React from 'react'; @@ -386,7 +386,7 @@ const FilledOrNullTextInput = props => { return ( typeof v === 'string' && v.length === 0 ? null : v } + format={ v => typeof v === 'string' && v.length === 0 ? null : v } /> ); };