bugfix: local-search support cjk

This commit is contained in:
soulteary 2022-01-04 13:26:50 +08:00
parent 6d8ce5361a
commit 19a910a91c

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