Skip to content

Commit

Permalink
Merge pull request #13265 from huzaifa-99/13044-fix-transition-after-…
Browse files Browse the repository at this point in the history
…login-jerk

Blur login page input only when transitioned to magic link page
  • Loading branch information
pecanoro authored Dec 6, 2022
2 parents b9753e5 + 5dd2d95 commit 5869c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/signin/SignInPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class SignInPage extends Component {
>
{/* LoginForm and PasswordForm must use the isVisible prop. This keeps them mounted, but visually hidden
so that password managers can access the values. Conditionally rendering these components will break this feature. */}
<LoginForm isVisible={showLoginForm} blurOnSubmit={shouldShowResendValidationLinkForm} />
<LoginForm isVisible={showLoginForm} blurOnSubmit={this.props.account.validated === false} />
<PasswordForm isVisible={showPasswordForm} />
{shouldShowResendValidationLinkForm && <ResendValidationForm />}
</SignInPageLayout>
Expand Down

0 comments on commit 5869c66

Please sign in to comment.