Skip to content

Commit

Permalink
Merge pull request #52232 from mkzie2/mkzie2-issue/51272
Browse files Browse the repository at this point in the history
fix: `ValidateCodeActionModal` is not dismissed on backdrop press
  • Loading branch information
pecanoro authored Nov 19, 2024
2 parents e046ebe + a5ac5db commit 763215e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/ValidateCodeActionModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import ScreenWrapper from '@components/ScreenWrapper';
import Text from '@components/Text';
import useSafePaddingBottomStyle from '@hooks/useSafePaddingBottomStyle';
import useThemeStyles from '@hooks/useThemeStyles';
import Navigation from '@libs/Navigation/Navigation';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import type {ValidateCodeActionModalProps} from './type';
Expand Down Expand Up @@ -56,6 +57,7 @@ function ValidateCodeActionModal({
isVisible={isVisible}
onClose={hide}
onModalHide={onModalHide ?? hide}
onBackdropPress={() => Navigation.dismissModal()}
hideModalContentWhileAnimating
useNativeDriver
shouldUseModalPaddingStyle={false}
Expand Down

0 comments on commit 763215e

Please sign in to comment.