+ client: 2154 Make renderCheckboxField a controlled input

This commit is contained in:
ArtemBaskal
2020-10-05 14:53:20 +03:00
parent 8856dd6e4c
commit 0ae00932e9
7 changed files with 38 additions and 30 deletions

View File

@@ -6,7 +6,7 @@ import { Trans, useTranslation } from 'react-i18next';
import {
renderInputField,
renderRadioField,
renderCheckboxField,
CheckboxField,
toNumber,
} from '../../../../helpers/form';
import {
@@ -97,7 +97,7 @@ const Form = ({
<Field
name={name}
type="checkbox"
component={renderCheckboxField}
component={CheckboxField}
placeholder={t(placeholder)}
disabled={processing}
subtitle={t(subtitle)}