Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Don't disable username/password fields whilst doing wk-lookup (#7438)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Dec 22, 2021
1 parent f3776f8 commit b4755f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/views/auth/PasswordLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
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}
Expand All @@ -344,7 +344,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
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}
Expand All @@ -371,7 +371,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
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}
Expand Down Expand Up @@ -422,7 +422,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
element="select"
value={this.state.loginType}
onChange={this.onLoginTypeChange}
disabled={this.props.disableSubmit}
disabled={this.props.busy}
>
<option key={LoginField.MatrixId} value={LoginField.MatrixId}>
{ _t('Username') }
Expand Down Expand Up @@ -454,7 +454,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
label={_t('Password')}
value={this.state.password}
onChange={this.onPasswordChanged}
disabled={this.props.disableSubmit}
disabled={this.props.busy}
autoFocus={autoFocusPassword}
onValidate={this.onPasswordValidate}
ref={field => this[LoginField.Password] = field}
Expand Down

0 comments on commit b4755f3

Please sign in to comment.