Merge pull request #278 from soulteary/bugfix/local-search-support-cjk
bugfix: local-search support CJK
This commit is contained in:
commit
5c84d90bf1
1 changed files with 2 additions and 1 deletions
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue