Skip to content

Commit 0d536fd

Browse files
committed
Fix closing the current flow when clicking on backdrop in StatePicker
1 parent d710d7f commit 0d536fd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/StatePicker/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type {CONST as COMMON_CONST} from 'expensify-common';
22
import React, {useState} from 'react';
33
import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription';
44
import useLocalize from '@hooks/useLocalize';
5-
import Navigation from '@libs/Navigation/Navigation';
65
import type {Option} from '@libs/searchOptions';
76
import CONST from '@src/CONST';
87
import StateSelectorModal from './StateSelectorModal';
@@ -49,7 +48,7 @@ function StatePicker({value, errorText, onInputChange = () => {}}: StatePickerPr
4948
onStateSelected={updateInput}
5049
onClose={hidePickerModal}
5150
label={translate('common.state')}
52-
onBackdropPress={Navigation.dismissModal}
51+
onBackdropPress={hidePickerModal}
5352
/>
5453
</>
5554
);

0 commit comments

Comments
 (0)