Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
fix: cancel button on Android not clearing search
Browse files Browse the repository at this point in the history
  • Loading branch information
antsgar committed Mar 30, 2021
1 parent 526b143 commit 081d96c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/screens/Notes/NoteList.tsx
Expand Up @@ -227,7 +227,10 @@ export const NoteList = (props: Props) => {
<AndroidSearchBar
ref={androidSearchBarInputRef}
onChangeText={onChangeSearchText}
onCancel={onSearchBlur}
onCancel={() => {
onSearchBlur();
props.onSearchCancel();
}}
onDelete={props.onSearchCancel}
onFocus={onSearchFocus}
onBlur={onSearchBlur}
Expand Down

0 comments on commit 081d96c

Please sign in to comment.