Skip to content

Commit

Permalink
set isloading to false
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcecodedeveloper committed Dec 24, 2023
1 parent 1acf4f7 commit ac3e5f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/signin/LoginForm/BaseLoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ function LoginForm(props) {
}

if (!validate(login)) {
isLoading.current = false;
return;
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ac3e5f8

Please sign in to comment.