From 0fa453316814dd9778a64fca10b472077340c8f6 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Sun, 2 Apr 2023 23:47:42 +0600 Subject: [PATCH] fix: uncontrolled to controlled form --- src/components/Login/EmailLoginForm.tsx | 4 ++-- src/components/Login/EmailSignupForm.tsx | 6 +++--- src/components/Profile/ForgotPasswordForm.tsx | 2 +- src/components/Profile/ResetPasswordForm.tsx | 4 ++-- src/components/Setting/ChangePasswordForm.tsx | 6 +++--- src/components/Setting/UpdateProfileForm.tsx | 8 ++++---- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/components/Login/EmailLoginForm.tsx b/src/components/Login/EmailLoginForm.tsx index ef418ce87..f0c9e156f 100644 --- a/src/components/Login/EmailLoginForm.tsx +++ b/src/components/Login/EmailLoginForm.tsx @@ -132,7 +132,7 @@ const EmailLoginForm: FunctionComponent<{}> = () => { className="block w-full appearance-none rounded-lg border border-gray-300 px-3 py-2 shadow-sm outline-none transition duration-150 ease-in-out placeholder:text-gray-400 focus:ring-2 focus:ring-black focus:ring-offset-1" placeholder="john@example.com" value={email} - onChange={(e) => setEmail(String((e.target as any).value))} + onInput={(e) => setEmail(String((e.target as any).value))} />