From b37a8b812e32b0a7f0812daa923d074fdbf10825 Mon Sep 17 00:00:00 2001 From: truph01 Date: Thu, 26 Sep 2024 01:48:03 +0700 Subject: [PATCH] fix: Sluggish animation when selecting a different type --- src/pages/Search/SearchTypeMenuNarrow.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/Search/SearchTypeMenuNarrow.tsx b/src/pages/Search/SearchTypeMenuNarrow.tsx index b5d390e2fc53..7ec814e5f2ee 100644 --- a/src/pages/Search/SearchTypeMenuNarrow.tsx +++ b/src/pages/Search/SearchTypeMenuNarrow.tsx @@ -81,6 +81,7 @@ function SearchTypeMenuNarrow({typeMenuItems, activeItemIndex, queryJSON, title, shouldShowRightIcon: isSelected, success: isSelected, containerStyle: isSelected ? [{backgroundColor: theme.border}] : undefined, + shouldCallAfterModalHide: true, }; }); @@ -95,6 +96,7 @@ function SearchTypeMenuNarrow({typeMenuItems, activeItemIndex, queryJSON, title, containerStyle: undefined, iconRight: Expensicons.Checkmark, shouldShowRightIcon: false, + shouldCallAfterModalHide: true, }); } @@ -121,6 +123,7 @@ function SearchTypeMenuNarrow({typeMenuItems, activeItemIndex, queryJSON, title, /> ), isSelected: currentSavedSearch?.hash === item.hash, + shouldCallAfterModalHide: true, })); const allMenuItems = [];