From 57305936ff3c38a64baa1c5f9b7afd3b28d2dd55 Mon Sep 17 00:00:00 2001 From: Olly Wilks Date: Thu, 20 Jul 2023 09:57:32 +0100 Subject: [PATCH] Disable menu and button when avatarCropModal opens --- src/components/AvatarWithImagePicker.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/AvatarWithImagePicker.js b/src/components/AvatarWithImagePicker.js index 86747640784a..cea4ce944da9 100644 --- a/src/components/AvatarWithImagePicker.js +++ b/src/components/AvatarWithImagePicker.js @@ -226,6 +226,7 @@ class AvatarWithImagePicker extends React.Component { this.setState({ isAvatarCropModalOpen: true, + isMenuVisible: false, imageUri: image.uri, imageName: image.name, imageType: image.type, @@ -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} >