Skip to content

Commit

Permalink
Do not blur on clear of search bar.
Browse files Browse the repository at this point in the history
Otherwise clear and cancel do exactly the same thing.
  • Loading branch information
paullinator committed Dec 15, 2024
1 parent b687406 commit 3465579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/themed/SearchFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const SearchFooter = (props: SearchFooterProps) => {
onChangeText(text)
})

const handleSearchClear = useHandler(() => {
const handleSearchDone = useHandler(() => {
onDoneSearching()
})

Expand Down Expand Up @@ -100,7 +100,7 @@ export const SearchFooter = (props: SearchFooterProps) => {
onChangeText={handleSearchChangeText}
value={searchText}
active={isSearching}
onClear={handleSearchClear}
onBlur={handleSearchDone}
onFocus={handleSearchFocus}
ref={textInputRef}
iconComponent={SearchIconAnimated}
Expand Down

0 comments on commit 3465579

Please sign in to comment.