set autocomplete to off as autofill obscures datepicker
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user