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
const { value, suggestions } = this.state;
const inputProps = {
autoFocus: true,
onChange: this.onChange,
placeholder: "Search The Web",
value,
onChange: this.onChange,
};
return (