Browse Source
Handle auto-focus on all password modal cases
master
meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
1 changed files with
2 additions and
1 deletions
-
src/components/SettingsPage/PasswordModal.js
|
|
@ -94,9 +94,9 @@ class PasswordModal extends PureComponent<Props, State> { |
|
|
|
{t('settings:profile.passwordModalPasswordInput')} |
|
|
|
</Label> |
|
|
|
<InputPassword |
|
|
|
autoFocus |
|
|
|
type="password" |
|
|
|
placeholder={t('settings:profile.passwordModalPasswordInput')} |
|
|
|
autoFocus |
|
|
|
id="password" |
|
|
|
onChange={this.handleInputChange('currentPassword')} |
|
|
|
value={currentPassword} |
|
|
@ -110,6 +110,7 @@ class PasswordModal extends PureComponent<Props, State> { |
|
|
|
</Label> |
|
|
|
)} |
|
|
|
<InputPassword |
|
|
|
autoFocus={!isPasswordEnabled} |
|
|
|
placeholder={t('settings:profile.passwordModalNewPasswordInput')} |
|
|
|
id="newPassword" |
|
|
|
onChange={this.handleInputChange('newPassword')} |
|
|
|