From 19a910a91c3eab2ee5b6ccb6dd7fcbca49764bbf Mon Sep 17 00:00:00 2001 From: soulteary Date: Tue, 4 Jan 2022 13:26:50 +0800 Subject: [PATCH] bugfix: local-search support cjk --- client/src/components/SearchBar/SearchBar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/SearchBar/SearchBar.tsx b/client/src/components/SearchBar/SearchBar.tsx index 9920073..dd0efe4 100644 --- a/client/src/components/SearchBar/SearchBar.tsx +++ b/client/src/components/SearchBar/SearchBar.tsx @@ -69,7 +69,8 @@ export const SearchBar = (props: Props): JSX.Element => { ); if (isLocal) { - setLocalSearch(search); + // no additional encoding required for local search + setLocalSearch(inputRef.current.value); } if (e.code === 'Enter' || e.code === 'NumpadEnter') {