@@ -325,7 +325,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
325
325
onChange = { this . onUsernameChanged }
326
326
onFocus = { this . onUsernameFocus }
327
327
onBlur = { this . onUsernameBlur }
328
- disabled = { this . props . disableSubmit }
328
+ disabled = { this . props . busy }
329
329
autoFocus = { autoFocus }
330
330
onValidate = { this . onEmailValidate }
331
331
fieldRef = { field => this [ LoginField . Email ] = field }
@@ -344,7 +344,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
344
344
onChange = { this . onUsernameChanged }
345
345
onFocus = { this . onUsernameFocus }
346
346
onBlur = { this . onUsernameBlur }
347
- disabled = { this . props . disableSubmit }
347
+ disabled = { this . props . busy }
348
348
autoFocus = { autoFocus }
349
349
onValidate = { this . onUsernameValidate }
350
350
ref = { field => this [ LoginField . MatrixId ] = field }
@@ -371,7 +371,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
371
371
onChange = { this . onPhoneNumberChanged }
372
372
onFocus = { this . onPhoneNumberFocus }
373
373
onBlur = { this . onPhoneNumberBlur }
374
- disabled = { this . props . disableSubmit }
374
+ disabled = { this . props . busy }
375
375
autoFocus = { autoFocus }
376
376
onValidate = { this . onPhoneNumberValidate }
377
377
ref = { field => this [ LoginField . Password ] = field }
@@ -422,7 +422,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
422
422
element = "select"
423
423
value = { this . state . loginType }
424
424
onChange = { this . onLoginTypeChange }
425
- disabled = { this . props . disableSubmit }
425
+ disabled = { this . props . busy }
426
426
>
427
427
< option key = { LoginField . MatrixId } value = { LoginField . MatrixId } >
428
428
{ _t ( 'Username' ) }
@@ -454,7 +454,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
454
454
label = { _t ( 'Password' ) }
455
455
value = { this . state . password }
456
456
onChange = { this . onPasswordChanged }
457
- disabled = { this . props . disableSubmit }
457
+ disabled = { this . props . busy }
458
458
autoFocus = { autoFocusPassword }
459
459
onValidate = { this . onPasswordValidate }
460
460
ref = { field => this [ LoginField . Password ] = field }
0 commit comments