Skip to content

Commit

Permalink
Disable menu and button when avatarCropModal opens
Browse files Browse the repository at this point in the history
  • Loading branch information
Ollyws committed Jul 20, 2023
1 parent cc5526b commit 5730593
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/AvatarWithImagePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ class AvatarWithImagePicker extends React.Component {

this.setState({
isAvatarCropModalOpen: true,
isMenuVisible: false,
imageUri: image.uri,
imageName: image.name,
imageType: image.type,
Expand Down Expand Up @@ -279,6 +280,7 @@ class AvatarWithImagePicker extends React.Component {
onPress={() => this.setState({isMenuVisible: true})}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.IMAGEBUTTON}
accessibilityLabel={this.props.translate('avatarWithImagePicker.editImage')}
disabled={this.state.isAvatarCropModalOpen}
>
<View style={[styles.pRelative, styles.avatarLarge]}>
<OfflineWithFeedback
Expand Down

0 comments on commit 5730593

Please sign in to comment.