forked from akai/readest
fix(search): correctly display results when searching from selected text (#2304)
This commit is contained in:
@@ -148,7 +148,7 @@ const SearchBar: React.FC<SearchBarProps> = ({
|
||||
console.log('search progress:', result.progress);
|
||||
lastProgressLogTime = now;
|
||||
}
|
||||
if (queuedSearchTerm.current !== term) {
|
||||
if (queuedSearchTerm.current && queuedSearchTerm.current !== term) {
|
||||
console.log('search term changed, resetting search');
|
||||
resetSearch();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user