diff --git a/src/client/components/common/FormikDatePicker.jsx b/src/client/components/common/FormikDatePicker.jsx index ff3337be..cd072af3 100644 --- a/src/client/components/common/FormikDatePicker.jsx +++ b/src/client/components/common/FormikDatePicker.jsx @@ -32,6 +32,9 @@ const FormikDatePicker = ({ name, ...props }) => { 'data-cy': `formik-date-picker-field-${name}-input`, }, }, + field: { + 'data-cy': `formik-date-picker-field-${name}`, + }, inputAdornment: { 'data-cy': `formik-date-picker-keyboard-field-${name}`, 'aria-label': 'change date', @@ -40,9 +43,6 @@ const FormikDatePicker = ({ name, ...props }) => { 'data-cy': `formik-date-picker-field-${name}-popper`, }, }} - InputProps={{ - 'data-cy': `formik-date-picker-field-${name}`, - }} maxDate={new Date('2300-01-01')} {...props} />