Skip to content

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

fix: Tags in input

sytolk88fb6177fe22
diff --git a/app/components/SearchInline.tsx b/app/components/SearchInline.tsx
index 698f9625c..30839747d 100644
--- a/app/components/SearchInline.tsx
+++ b/app/components/SearchInline.tsx
@@ -152,8 +152,9 @@ const SearchInline = (props: Props) => {
});
}
if (txtQuery !== textQuery.current) {
- textQuery.current = txtQuery;
- forceUpdate();
+ textQuery.current = txtQuery.trim();
+ mainSearchField.current.value = textQuery.current;
+ // forceUpdate();
}
}, [props.searchQuery]);