From 364467ac65a0d2c6e2af5395b57fdbd55cd71007 Mon Sep 17 00:00:00 2001 From: Galax <72642849+Galax028@users.noreply.github.com> Date: Thu, 2 Dec 2021 09:49:44 +0700 Subject: [PATCH] Added autofocus --- src/components/ts/Search.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ts/Search.tsx b/src/components/ts/Search.tsx index 370b2bf..c6e5041 100644 --- a/src/components/ts/Search.tsx +++ b/src/components/ts/Search.tsx @@ -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 (