From efe06c02b8a2c4908613f9c2771e4bb615415ba1 Mon Sep 17 00:00:00 2001 From: Ishpaul Singh Date: Wed, 4 Sep 2024 02:24:33 +0530 Subject: [PATCH] fixes issue --- src/components/PopoverMenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PopoverMenu.tsx b/src/components/PopoverMenu.tsx index b59c5360fcc1..804f0aafbe70 100644 --- a/src/components/PopoverMenu.tsx +++ b/src/components/PopoverMenu.tsx @@ -140,8 +140,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 {