Skip to content
Snippets Groups Projects
Commit ddb26018 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

add autofocus on first input of setup form.

parent 0a559587
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,7 @@ export default class UserStep extends Component {
<FormField className="Grid" fieldName="first_name" formError={formError}>
<div>
<FormLabel title="First name" fieldName="first_name" formError={formError}></FormLabel>
<input ref="firstName" className="Form-input Form-offset full" name="name" defaultValue={(userDetails) ? userDetails.first_name : ""} placeholder="Johnny" onChange={this.onChange.bind(this)} />
<input ref="firstName" className="Form-input Form-offset full" name="name" defaultValue={(userDetails) ? userDetails.first_name : ""} placeholder="Johnny" autoFocus={true} onChange={this.onChange.bind(this)} />
<span className="Form-charm"></span>
</div>
<div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment