Skip to content

Commit d710d7f

Browse files
committed
Fix closing the current flow when clicking on backdrop in CountryPicker
1 parent 6f497ea commit d710d7f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/CountryPicker/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, {useState} from 'react';
22
import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription';
33
import useLocalize from '@hooks/useLocalize';
4-
import Navigation from '@libs/Navigation/Navigation';
54
import type {Option} from '@libs/searchOptions';
65
import CONST from '@src/CONST';
76
import type {TranslationPaths} from '@src/languages/types';
@@ -47,7 +46,7 @@ function CountryPicker({value, errorText, onInputChange = () => {}}: CountryPick
4746
onCountrySelected={updateInput}
4847
onClose={hidePickerModal}
4948
label={translate('common.country')}
50-
onBackdropPress={Navigation.dismissModal}
49+
onBackdropPress={hidePickerModal}
5150
/>
5251
</>
5352
);

0 commit comments

Comments
 (0)