From fab57f5be9db14562bfdadd40aaad323e1fb1280 Mon Sep 17 00:00:00 2001 From: Mounir Dhahri Date: Fri, 29 Sep 2023 10:47:18 +0200 Subject: [PATCH] fix: set max input length on search (#9357) * fix: set max input length on search * chore: add comment --- src/app/Components/SearchInput.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/Components/SearchInput.tsx b/src/app/Components/SearchInput.tsx index 135f11e479c..db87f04c5a0 100644 --- a/src/app/Components/SearchInput.tsx +++ b/src/app/Components/SearchInput.tsx @@ -51,6 +51,9 @@ export const SearchInput = forwardRef( 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) => {