autocomplete fix

This commit is contained in:
Karol Wypchlo 2021-02-16 17:43:41 +01:00
parent cf765cd8e1
commit 30796bdf2e
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ export default function Login({ flow }) {
id={field.name} id={field.name}
name={field.name} name={field.name}
type={field.type} type={field.type}
autoComplete={fieldProps[field.name]} autoComplete={field.autoComplete}
required={field.required} required={field.required}
onChange={formik.handleChange} onChange={formik.handleChange}
onBlur={formik.handleBlur} onBlur={formik.handleBlur}

View File

@ -96,7 +96,7 @@ export default function Recovery({ flow }) {
id={field.name} id={field.name}
name={field.name} name={field.name}
type={field.type} type={field.type}
autoComplete={fieldProps[field.name]} autoComplete={field.autoComplete}
required={field.required} required={field.required}
value={field.value || undefined} value={field.value || undefined}
className="appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-green-500 focus:border-green-500 sm:text-sm" className="appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-green-500 focus:border-green-500 sm:text-sm"