Skip to content

Commit

Permalink
fix: set max input length on search (#9357)
Browse files Browse the repository at this point in the history
* fix: set max input length on search

* chore: add comment
  • Loading branch information
MounirDhahri authored Sep 29, 2023
1 parent 29b9e2c commit fab57f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/Components/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export const SearchInput = forwardRef<InputRef, SearchInputProps>(
onClear?.()
inputRef?.current?.focus()
}}
// We only support up to 100 chars search in our backend,
// anything above that would lead to an error
maxLength={100}
onChangeText={onChangeText}
{...props}
onFocus={(e) => {
Expand Down

0 comments on commit fab57f5

Please sign in to comment.