Merge pull request #278 from soulteary/bugfix/local-search-support-cjk

bugfix: local-search support CJK
This commit is contained in:
pawelmalak 2022-01-08 13:17:22 +01:00 committed by GitHub
commit 5c84d90bf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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') {