From 9a50eb6ff7a0c3b0ba6e809350495023db28fe7c Mon Sep 17 00:00:00 2001 From: Fedi Rajhi Date: Fri, 23 Aug 2024 11:55:44 +0100 Subject: [PATCH] [Chore]: Update shouldCallAfterModalHide in AvatarWithImagePicker and AttachmentPickerWithMenuItems --- src/components/AvatarWithImagePicker.tsx | 2 +- .../ReportActionCompose/AttachmentPickerWithMenuItems.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/AvatarWithImagePicker.tsx b/src/components/AvatarWithImagePicker.tsx index 8a018101b63e..c3722c68af74 100644 --- a/src/components/AvatarWithImagePicker.tsx +++ b/src/components/AvatarWithImagePicker.tsx @@ -272,7 +272,7 @@ function AvatarWithImagePicker({ onPicked: showAvatarCropModal, }); }, - shouldCallAfterModalHide: true, + shouldCallAfterModalHide: !Browser.isSafari(), }, ]; diff --git a/src/pages/home/report/ReportActionCompose/AttachmentPickerWithMenuItems.tsx b/src/pages/home/report/ReportActionCompose/AttachmentPickerWithMenuItems.tsx index 6e3c3a48de74..ac33842ef7a1 100644 --- a/src/pages/home/report/ReportActionCompose/AttachmentPickerWithMenuItems.tsx +++ b/src/pages/home/report/ReportActionCompose/AttachmentPickerWithMenuItems.tsx @@ -230,7 +230,7 @@ function AttachmentPickerWithMenuItems({ } triggerAttachmentPicker(); }, - shouldCallAfterModalHide: true, + shouldCallAfterModalHide: !Browser.isSafari(), }, ]; return (