Skip to content

Commit f1fe2bb

Browse files
Allow using comma to seperate searchterms (from autocomplete)
1 parent e7dc028 commit f1fe2bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/components/search/SearchBar/searchBar.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ const SearchBar = ({
290290
const value = (event.target as HTMLInputElement).value;
291291
// if the last character in the new string is a space, check for autocomplete
292292
if (
293-
value[value.length - 1] === ' ' &&
293+
(value[value.length - 1] === ' ' ||
294+
value[value.length - 1] === ',') &&
294295
// but if the user is deleting text, don't try to autocomplete
295296
(event.nativeEvent as InputEvent).inputType === 'insertText'
296297
) {

0 commit comments

Comments
 (0)