mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-04 22:00:42 +03:00
Add prop to toggle whether new password input is autoFocused
This commit is contained in:
parent
c51f4b14ea
commit
a1f10ff46d
1 changed files with 3 additions and 1 deletions
|
@ -35,6 +35,8 @@ module.exports = React.createClass({
|
||||||
rowInputClassName: React.PropTypes.string,
|
rowInputClassName: React.PropTypes.string,
|
||||||
buttonClassName: React.PropTypes.string,
|
buttonClassName: React.PropTypes.string,
|
||||||
confirm: React.PropTypes.bool,
|
confirm: React.PropTypes.bool,
|
||||||
|
// Whether to autoFocus the new password input
|
||||||
|
autoFocusNewPasswordInput: React.PropTypes.bool,
|
||||||
},
|
},
|
||||||
|
|
||||||
Phases: {
|
Phases: {
|
||||||
|
@ -199,7 +201,7 @@ module.exports = React.createClass({
|
||||||
<label htmlFor="password1">New password</label>
|
<label htmlFor="password1">New password</label>
|
||||||
</div>
|
</div>
|
||||||
<div className={rowInputClassName}>
|
<div className={rowInputClassName}>
|
||||||
<input id="password1" type="password" ref="new_input" />
|
<input id="password1" type="password" ref="new_input" autoFocus={this.props.autoFocusNewPasswordInput} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={rowClassName}>
|
<div className={rowClassName}>
|
||||||
|
|
Loading…
Reference in a new issue