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

Commit 602255f

Browse files
authored
Merge pull request #1094 from matrix-org/dbkr/enter_submits_changepassword
Make enter submit change password form
2 parents 302233d + 57ef6f3 commit 602255f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/views/settings/ChangePassword.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ module.exports = React.createClass({
223223
const passwordLabel = this.state.cachedPassword ?
224224
_t('Password') : _t('New Password');
225225
return (
226-
<div className={this.props.className}>
226+
<form className={this.props.className} onSubmit={this.onClickChange}>
227227
{ currentPassword }
228228
<div className={rowClassName}>
229229
<div className={rowLabelClassName}>
@@ -246,7 +246,7 @@ module.exports = React.createClass({
246246
element="button">
247247
{ _t('Change Password') }
248248
</AccessibleButton>
249-
</div>
249+
</form>
250250
);
251251
case this.Phases.Uploading:
252252
var Loader = sdk.getComponent("elements.Spinner");

0 commit comments

Comments
 (0)