Skip to content

Commit

Permalink
Added autoFocus & reverted Timeout to 500ms
Browse files Browse the repository at this point in the history
Signed-off-by: Archit Sharma <[email protected]>
  • Loading branch information
iArchitSharma authored Aug 29, 2023
1 parent f1c0b9a commit 805ecce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/reusecore/Search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ const SearchBox = ({
type="text"
value={searchQuery}
minLength={1}
debounceTimeout={5000}
debounceTimeout={500}
onChange={(e) => handleChange(e)}
placeholder="Search..."
autoFocus
/>
<Button aria-label="search icon">
<FaSearch />
Expand Down

0 comments on commit 805ecce

Please sign in to comment.