Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Fix issue with using filter and enter key (#1916)

Stanimirf9150083b80f
diff --git a/app/components/SearchAutocomplete.tsx b/app/components/SearchAutocomplete.tsx
index 94a372c94..bce137946 100644
--- a/app/components/SearchAutocomplete.tsx
+++ b/app/components/SearchAutocomplete.tsx
@@ -586,6 +586,14 @@ function SearchAutocomplete(props: Props) {
}
const executeSearch = () => {
+ if (
+ actionValues.current.some(action =>
+ isAction(action.action, SearchActions.FILTER)
+ )
+ ) {
+ // don't execute search on search filter
+ return;
+ }
let query = inputValue.current;
if (
query.startsWith('ts:?ts') ||