From 89a87513e97c6842ec85558882f5888a87b58789 Mon Sep 17 00:00:00 2001 From: sliterok Date: Wed, 19 Aug 2020 19:09:07 +0500 Subject: [PATCH] Fixed documentation about `` https://github.com/marmelab/react-admin/pull/4365#issuecomment-676294084 --- docs/Inputs.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/Inputs.md b/docs/Inputs.md index 16decaaf9e5..64a82c58887 100644 --- a/docs/Inputs.md +++ b/docs/Inputs.md @@ -462,10 +462,16 @@ import { NullableBooleanInput } from 'react-admin'; /> ``` +Also you need to provide your own label for null value. + ```jsx +import polyglotI18nProvider from 'ra-i18n-polyglot'; import englishMessages from 'ra-language-english'; englishMessages.ra.boolean.null = 'Null label'; +const i18nProvider = polyglotI18nProvider(() => englishMessages, 'en'); + + ``` ![NullableBooleanInput](./img/nullable-boolean-input-null-label.png)