From 070e92151843d75106dcb9928ab8e03781cb4389 Mon Sep 17 00:00:00 2001 From: thelullabyy Date: Thu, 13 Mar 2025 18:14:00 +0700 Subject: [PATCH] fix: Text in search input, bounces with every letter added to the search --- src/components/Search/SearchAutocompleteInput.tsx | 2 +- src/components/TextInput/BaseTextInput/index.native.tsx | 4 ++-- src/components/TextInput/BaseTextInput/index.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Search/SearchAutocompleteInput.tsx b/src/components/Search/SearchAutocompleteInput.tsx index 5067647ec853..52919ca834b3 100644 --- a/src/components/Search/SearchAutocompleteInput.tsx +++ b/src/components/Search/SearchAutocompleteInput.tsx @@ -233,7 +233,7 @@ function SearchAutocompleteInput( focusedSharedValue.set(false); onBlur?.(); }} - isLoading={!!isSearchingForReports} + isLoading={isSearchingForReports} ref={ref} onKeyPress={handleKeyPress(onSubmit)} type="markdown" diff --git a/src/components/TextInput/BaseTextInput/index.native.tsx b/src/components/TextInput/BaseTextInput/index.native.tsx index d05cbfb278f2..55b2e9df8032 100644 --- a/src/components/TextInput/BaseTextInput/index.native.tsx +++ b/src/components/TextInput/BaseTextInput/index.native.tsx @@ -400,11 +400,11 @@ function BaseTextInput( )} {isFocused && !isReadOnly && shouldShowClearButton && !!value && setValue('')} />} - {!!inputProps.isLoading && ( + {inputProps.isLoading !== undefined && ( )} {!!inputProps.secureTextEntry && ( diff --git a/src/components/TextInput/BaseTextInput/index.tsx b/src/components/TextInput/BaseTextInput/index.tsx index 4722d89ae3c6..2eedb9f3eb84 100644 --- a/src/components/TextInput/BaseTextInput/index.tsx +++ b/src/components/TextInput/BaseTextInput/index.tsx @@ -417,11 +417,11 @@ function BaseTextInput( setValue('')} /> )} - {!!inputProps.isLoading && ( + {inputProps.isLoading !== undefined && ( )} {!!inputProps.secureTextEntry && (