Skip to content

Commit

Permalink
Merge pull request #23249 from Ollyws/issue-21108
Browse files Browse the repository at this point in the history
Fix for: Web - App displays upload popup along with edit photo page on double enter on photo upload in profile
  • Loading branch information
robertjchen authored Jul 22, 2023
2 parents e87ba56 + 5730593 commit b7d17e0
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 b7d17e0

Please sign in to comment.