Browse Source

Handle auto-focus on all password modal cases

master
meriadec 7 years ago
parent
commit
2f80a060ae
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 3
      src/components/SettingsPage/PasswordModal.js

3
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')}

Loading…
Cancel
Save