From f1c0b9ae1d5a7c1d3ca2acb2aa8f9a00f4002d37 Mon Sep 17 00:00:00 2001 From: Archit Sharma Date: Tue, 29 Aug 2023 17:14:17 +0530 Subject: [PATCH 1/2] Updated debounceTimeout of Blog Search bar Signed-off-by: Archit Sharma --- src/reusecore/Search/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reusecore/Search/index.js b/src/reusecore/Search/index.js index f383573f03a7..635f01f4674b 100644 --- a/src/reusecore/Search/index.js +++ b/src/reusecore/Search/index.js @@ -37,7 +37,7 @@ const SearchBox = ({ type="text" value={searchQuery} minLength={1} - debounceTimeout={500} + debounceTimeout={5000} onChange={(e) => handleChange(e)} placeholder="Search..." /> From 805ecce96234b4c94f3e3ac88046d7ae1d838022 Mon Sep 17 00:00:00 2001 From: Archit Sharma <74408634+iArchitSharma@users.noreply.github.com> Date: Tue, 29 Aug 2023 21:44:21 +0530 Subject: [PATCH 2/2] Added autoFocus & reverted Timeout to 500ms Signed-off-by: Archit Sharma <74408634+iArchitSharma@users.noreply.github.com> --- src/reusecore/Search/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/reusecore/Search/index.js b/src/reusecore/Search/index.js index 635f01f4674b..2d873aac749d 100644 --- a/src/reusecore/Search/index.js +++ b/src/reusecore/Search/index.js @@ -37,9 +37,10 @@ const SearchBox = ({ type="text" value={searchQuery} minLength={1} - debounceTimeout={5000} + debounceTimeout={500} onChange={(e) => handleChange(e)} placeholder="Search..." + autoFocus />