TagSpaces is an offline, open source, document manager with tagging support
Search do not clear correctly (#2270)
Stanimirfc69da7b8e33
diff --git a/src/renderer/components/SearchAutocomplete.tsx b/src/renderer/components/SearchAutocomplete.tsxindex de6f9a367..3d727986b 100644--- a/src/renderer/components/SearchAutocomplete.tsx+++ b/src/renderer/components/SearchAutocomplete.tsx@@ -989,6 +989,7 @@ function SearchAutocomplete(props: Props) {tagsAND,tagsOR,tagsNOT,+ textQuery: '',executeSearch: false,});setTempSearchQuery({ textQuery: '' });@@ -1129,7 +1130,9 @@ function SearchAutocomplete(props: Props) {const inputArr = valueArr.filter((action) => !actionValues.current.some((v) => v.label === action),);- setTempSearchQuery({ textQuery: inputArr.join(' ') }, true);+ const txtQuery = inputArr.join(' ');+ setTempSearchQuery({ textQuery: txtQuery }, true);+ searchQuery.textQuery = txtQuery;forceUpdate();} else if (reason === 'clear') {clearSearch();