Skip to content

Commit

Permalink
Merge pull request #48510 from ishpaul777/fix/48452
Browse files Browse the repository at this point in the history
[FIX] "iOS - Composer - Add attachment modal is hidden behind the keyboard"

(cherry picked from commit ca8813d)

(CP triggered by roryabraham)
  • Loading branch information
roryabraham authored and OSBotify committed Sep 3, 2024
1 parent f6f3ced commit 9a2eeef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PopoverMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ function PopoverMenu({
const selectedSubMenuItemIndex = selectedItem?.subMenuItems.findIndex((option) => option.isSelected);
setFocusedIndex(selectedSubMenuItemIndex);
} else if (selectedItem.shouldCallAfterModalHide && !Browser.isSafari()) {
onItemSelected(selectedItem, index);
Modal.close(() => {
onItemSelected(selectedItem, index);
selectedItem.onSelected?.();
});
} else {
Expand Down

0 comments on commit 9a2eeef

Please sign in to comment.