From ac3e5f83c98896385dd77e9cd689b0bfb2a2d843 Mon Sep 17 00:00:00 2001 From: sourcecodedeveloper Date: Sun, 24 Dec 2023 13:58:58 -0800 Subject: [PATCH] set isloading to false --- src/pages/signin/LoginForm/BaseLoginForm.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/signin/LoginForm/BaseLoginForm.js b/src/pages/signin/LoginForm/BaseLoginForm.js index e5cac66ba248..5803f352ad4c 100644 --- a/src/pages/signin/LoginForm/BaseLoginForm.js +++ b/src/pages/signin/LoginForm/BaseLoginForm.js @@ -183,6 +183,7 @@ function LoginForm(props) { } if (!validate(login)) { + isLoading.current = false; return; } @@ -232,6 +233,7 @@ function LoginForm(props) { if (props.blurOnSubmit) { input.current.blur(); } + // Only focus the input if the form becomes visible again, to prevent the keyboard from automatically opening on touchscreen devices after signing out if (!input.current || prevIsVisible || !props.isVisible) { return;