Added autofocus

This commit is contained in:
Galax 2021-12-02 09:49:44 +07:00 committed by GitHub
parent c967b21c9c
commit 364467ac65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,9 +52,10 @@ class Search extends Component {
// @ts-ignore // @ts-ignore
const { value, suggestions } = this.state; const { value, suggestions } = this.state;
const inputProps = { const inputProps = {
autoFocus: true,
onChange: this.onChange,
placeholder: "Search The Web", placeholder: "Search The Web",
value, value,
onChange: this.onChange,
}; };
return ( return (