From 30796bdf2e8ea6cb9913e41815f02581947ca352 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 16 Feb 2021 17:43:41 +0100 Subject: [PATCH] autocomplete fix --- packages/dashboard/src/pages/auth/login.js | 2 +- packages/dashboard/src/pages/recovery.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dashboard/src/pages/auth/login.js b/packages/dashboard/src/pages/auth/login.js index 8403bb5c..64d4e732 100644 --- a/packages/dashboard/src/pages/auth/login.js +++ b/packages/dashboard/src/pages/auth/login.js @@ -115,7 +115,7 @@ export default function Login({ flow }) { id={field.name} name={field.name} type={field.type} - autoComplete={fieldProps[field.name]} + autoComplete={field.autoComplete} required={field.required} onChange={formik.handleChange} onBlur={formik.handleBlur} diff --git a/packages/dashboard/src/pages/recovery.js b/packages/dashboard/src/pages/recovery.js index a9383ce3..a1112a97 100644 --- a/packages/dashboard/src/pages/recovery.js +++ b/packages/dashboard/src/pages/recovery.js @@ -96,7 +96,7 @@ export default function Recovery({ flow }) { id={field.name} name={field.name} type={field.type} - autoComplete={fieldProps[field.name]} + autoComplete={field.autoComplete} required={field.required} 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"