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

Commit b4755f3

Browse files
authored
Don't disable username/password fields whilst doing wk-lookup (#7438)
1 parent f3776f8 commit b4755f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/views/auth/PasswordLogin.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
325325
onChange={this.onUsernameChanged}
326326
onFocus={this.onUsernameFocus}
327327
onBlur={this.onUsernameBlur}
328-
disabled={this.props.disableSubmit}
328+
disabled={this.props.busy}
329329
autoFocus={autoFocus}
330330
onValidate={this.onEmailValidate}
331331
fieldRef={field => this[LoginField.Email] = field}
@@ -344,7 +344,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
344344
onChange={this.onUsernameChanged}
345345
onFocus={this.onUsernameFocus}
346346
onBlur={this.onUsernameBlur}
347-
disabled={this.props.disableSubmit}
347+
disabled={this.props.busy}
348348
autoFocus={autoFocus}
349349
onValidate={this.onUsernameValidate}
350350
ref={field => this[LoginField.MatrixId] = field}
@@ -371,7 +371,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
371371
onChange={this.onPhoneNumberChanged}
372372
onFocus={this.onPhoneNumberFocus}
373373
onBlur={this.onPhoneNumberBlur}
374-
disabled={this.props.disableSubmit}
374+
disabled={this.props.busy}
375375
autoFocus={autoFocus}
376376
onValidate={this.onPhoneNumberValidate}
377377
ref={field => this[LoginField.Password] = field}
@@ -422,7 +422,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
422422
element="select"
423423
value={this.state.loginType}
424424
onChange={this.onLoginTypeChange}
425-
disabled={this.props.disableSubmit}
425+
disabled={this.props.busy}
426426
>
427427
<option key={LoginField.MatrixId} value={LoginField.MatrixId}>
428428
{ _t('Username') }
@@ -454,7 +454,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
454454
label={_t('Password')}
455455
value={this.state.password}
456456
onChange={this.onPasswordChanged}
457-
disabled={this.props.disableSubmit}
457+
disabled={this.props.busy}
458458
autoFocus={autoFocusPassword}
459459
onValidate={this.onPasswordValidate}
460460
ref={field => this[LoginField.Password] = field}

0 commit comments

Comments
 (0)