about summary refs log tree commit diff
path: root/src/view/screens/Search.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/screens/Search.tsx')
-rw-r--r--src/view/screens/Search.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/screens/Search.tsx b/src/view/screens/Search.tsx
index 2e176d98f..93539e29a 100644
--- a/src/view/screens/Search.tsx
+++ b/src/view/screens/Search.tsx
@@ -81,6 +81,7 @@ export const Search = observer(({navIdx, visible, params}: ScreenParams) => {
   const onPressCancelSearch = () => {
     setQuery('')
     autocompleteView.setActive(false)
+    textInput.current?.blur()
   }
 
   return (
@@ -127,10 +128,10 @@ export const Search = observer(({navIdx, visible, params}: ScreenParams) => {
               onChangeText={onChangeQuery}
             />
           </View>
-          {query ? (
+          {query || isInputFocused ? (
             <View style={styles.headerCancelBtn}>
               <TouchableOpacity onPress={onPressCancelSearch}>
-                <Text>Cancel</Text>
+                <Text style={pal.text}>Cancel</Text>
               </TouchableOpacity>
             </View>
           ) : undefined}