set autocomplete to off as autofill obscures datepicker

This commit is contained in:
2024-05-07 09:57:05 +01:00
parent bc5ad561ab
commit e401a5b10e
2 changed files with 3 additions and 1 deletions
@@ -653,6 +653,7 @@ export const RenderDatePicker = ({
className="govuk-input govuk-input--width-10" className="govuk-input govuk-input--width-10"
minDate={minDate} minDate={minDate}
maxDate={maxDate} maxDate={maxDate}
autoComplete="off"
//value={!value ? null : moment(value, "DD/MM/yyyy")} //value={!value ? null : moment(value, "DD/MM/yyyy")}
/> />
</fieldset> </fieldset>
+2 -1
View File
@@ -537,7 +537,7 @@ const RenderDatePicker = ({
id={id + "_label"} id={id + "_label"}
htmlFor={id} htmlFor={id}
> >
{FieldsTranslations(label)} {FieldsTranslations(label)} ssss
</label> </label>
</legend> </legend>
{touched && error && ( {touched && error && (
@@ -574,6 +574,7 @@ const RenderDatePicker = ({
className="govuk-input govuk-input--width-10" className="govuk-input govuk-input--width-10"
minDate={minDate} minDate={minDate}
maxDate={maxDate} maxDate={maxDate}
autoComplete="off"
//value={!value ? null : moment(value, "DD/MM/yyyy")} //value={!value ? null : moment(value, "DD/MM/yyyy")}
/> />
</fieldset> </fieldset>