Skip to content

Commit 1760cf7

Browse files
authored
Merge pull request #57993 from daledah/fix/57369
fix: hide keyboard before navigating search
2 parents ed50a34 + 4b77e01 commit 1760cf7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Search/SearchPageHeader/SearchPageHeaderInput.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import variables from '@styles/variables';
3535
import CONST from '@src/CONST';
3636
import ONYXKEYS from '@src/ONYXKEYS';
3737
import ROUTES from '@src/ROUTES';
38+
import KeyboardUtils from '@src/utils/keyboard';
3839
import SearchTypeMenuPopover from './SearchTypeMenuPopover';
3940

4041
// When counting absolute positioning, we need to account for borders
@@ -252,7 +253,7 @@ function SearchPageHeaderInput({
252253
onSearchQueryChange={onSearchQueryChange}
253254
isFullWidth
254255
onSubmit={() => {
255-
submitSearch(textInputValue);
256+
KeyboardUtils.dismiss().then(() => submitSearch(textInputValue));
256257
}}
257258
autoFocus={false}
258259
onFocus={onFocus}

0 commit comments

Comments
 (0)