mirror of https://github.com/vector-im/riot-web
Merge pull request #2546 from jryans/auth-focus-username
Auto-focus username on registrationpull/21833/head
commit
ab5c5c1261
|
@ -305,7 +305,7 @@ module.exports = React.createClass({
|
||||||
const emailSection = (
|
const emailSection = (
|
||||||
<div>
|
<div>
|
||||||
<input type="text" ref="email"
|
<input type="text" ref="email"
|
||||||
autoFocus={true} placeholder={emailPlaceholder}
|
placeholder={emailPlaceholder}
|
||||||
defaultValue={this.props.defaultEmail}
|
defaultValue={this.props.defaultEmail}
|
||||||
className={this._classForField(FIELD_EMAIL, 'mx_Login_field')}
|
className={this._classForField(FIELD_EMAIL, 'mx_Login_field')}
|
||||||
onBlur={this.onEmailBlur}
|
onBlur={this.onEmailBlur}
|
||||||
|
@ -359,6 +359,7 @@ module.exports = React.createClass({
|
||||||
<form onSubmit={this.onSubmit}>
|
<form onSubmit={this.onSubmit}>
|
||||||
<div className="mx_AuthBody_fieldRow">
|
<div className="mx_AuthBody_fieldRow">
|
||||||
<input type="text" ref="username"
|
<input type="text" ref="username"
|
||||||
|
autoFocus={true}
|
||||||
placeholder={placeholderUsername} defaultValue={this.props.defaultUsername}
|
placeholder={placeholderUsername} defaultValue={this.props.defaultUsername}
|
||||||
className={this._classForField(FIELD_USERNAME, 'mx_Login_field')}
|
className={this._classForField(FIELD_USERNAME, 'mx_Login_field')}
|
||||||
onBlur={this.onUsernameBlur} />
|
onBlur={this.onUsernameBlur} />
|
||||||
|
|
Loading…
Reference in New Issue