1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Autofocus first input for Search Token and Custom Token (#9562)

This commit is contained in:
David Walsh 2020-10-12 16:10:51 -05:00 committed by GitHub
parent bdd6416ba0
commit a3b434df46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -232,6 +232,7 @@ class AddToken extends Component {
onChange={(e) => this.handleCustomAddressChange(e.target.value)} onChange={(e) => this.handleCustomAddressChange(e.target.value)}
error={customAddressError} error={customAddressError}
fullWidth fullWidth
autoFocus
margin="normal" margin="normal"
/> />
<TextField <TextField

View File

@ -74,6 +74,7 @@ export default class TokenSearch extends Component {
onChange={(e) => this.handleSearch(e.target.value)} onChange={(e) => this.handleSearch(e.target.value)}
error={error} error={error}
fullWidth fullWidth
autoFocus
startAdornment={this.renderAdornment()} startAdornment={this.renderAdornment()}
/> />
) )