Autofocus the appropriate text fields in the Create/Import/Hardware screen (#9576)

feature/default_network_editable
David Walsh 4 years ago committed by GitHub
parent 674107da3f
commit bbd4ee5fdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ui/app/pages/create-account/import-account/private-key.js
  2. 1
      ui/app/pages/create-account/new-account.component.js

@ -91,6 +91,7 @@ class PrivateKeyImportView extends Component {
onKeyPress={(e) => this.createKeyringOnEnter(e)} onKeyPress={(e) => this.createKeyringOnEnter(e)}
onChange={() => this.checkInputEmpty()} onChange={() => this.checkInputEmpty()}
ref={this.inputRef} ref={this.inputRef}
autoFocus
/> />
</div> </div>
<div className="new-account-import-form__buttons"> <div className="new-account-import-form__buttons">

@ -54,6 +54,7 @@ export default class NewAccountCreateForm extends Component {
value={newAccountName} value={newAccountName}
placeholder={defaultAccountName} placeholder={defaultAccountName}
onChange={(event) => this.setState({ newAccountName: event.target.value })} onChange={(event) => this.setState({ newAccountName: event.target.value })}
autoFocus
/> />
<div className="new-account-create-form__buttons"> <div className="new-account-create-form__buttons">
<Button <Button

Loading…
Cancel
Save