mirror of https://github.com/vector-im/riot-web
Make enter submit change password form
Fixes https://github.com/vector-im/riot-web/issues/4302pull/21833/head
parent
74a74bc75d
commit
57ef6f3cf8
|
@ -223,7 +223,7 @@ module.exports = React.createClass({
|
|||
const passwordLabel = this.state.cachedPassword ?
|
||||
_t('Password') : _t('New Password');
|
||||
return (
|
||||
<div className={this.props.className}>
|
||||
<form className={this.props.className} onSubmit={this.onClickChange}>
|
||||
{ currentPassword }
|
||||
<div className={rowClassName}>
|
||||
<div className={rowLabelClassName}>
|
||||
|
@ -246,7 +246,7 @@ module.exports = React.createClass({
|
|||
element="button">
|
||||
{ _t('Change Password') }
|
||||
</AccessibleButton>
|
||||
</div>
|
||||
</form>
|
||||
);
|
||||
case this.Phases.Uploading:
|
||||
var Loader = sdk.getComponent("elements.Spinner");
|
||||
|
|
Loading…
Reference in New Issue