From b4755f38b945964e1e70c8d4247740cdbb1d33d8 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 22 Dec 2021 10:56:39 +0000 Subject: [PATCH] Don't disable username/password fields whilst doing wk-lookup (#7438) --- src/components/views/auth/PasswordLogin.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/views/auth/PasswordLogin.tsx b/src/components/views/auth/PasswordLogin.tsx index b9bba921dd..516aae0eac 100644 --- a/src/components/views/auth/PasswordLogin.tsx +++ b/src/components/views/auth/PasswordLogin.tsx @@ -325,7 +325,7 @@ export default class PasswordLogin extends React.PureComponent { onChange={this.onUsernameChanged} onFocus={this.onUsernameFocus} onBlur={this.onUsernameBlur} - disabled={this.props.disableSubmit} + disabled={this.props.busy} autoFocus={autoFocus} onValidate={this.onEmailValidate} fieldRef={field => this[LoginField.Email] = field} @@ -344,7 +344,7 @@ export default class PasswordLogin extends React.PureComponent { onChange={this.onUsernameChanged} onFocus={this.onUsernameFocus} onBlur={this.onUsernameBlur} - disabled={this.props.disableSubmit} + disabled={this.props.busy} autoFocus={autoFocus} onValidate={this.onUsernameValidate} ref={field => this[LoginField.MatrixId] = field} @@ -371,7 +371,7 @@ export default class PasswordLogin extends React.PureComponent { onChange={this.onPhoneNumberChanged} onFocus={this.onPhoneNumberFocus} onBlur={this.onPhoneNumberBlur} - disabled={this.props.disableSubmit} + disabled={this.props.busy} autoFocus={autoFocus} onValidate={this.onPhoneNumberValidate} ref={field => this[LoginField.Password] = field} @@ -422,7 +422,7 @@ export default class PasswordLogin extends React.PureComponent { element="select" value={this.state.loginType} onChange={this.onLoginTypeChange} - disabled={this.props.disableSubmit} + disabled={this.props.busy} >