Skip to content

Commit

Permalink
Merge pull request #49736 from truph01/fix/49296
Browse files Browse the repository at this point in the history
fix: Sluggish animation when selecting a different type
  • Loading branch information
deetergp authored Oct 2, 2024
2 parents 46f3d2c + f724e1d commit 4e48d45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/Search/SearchTypeMenuNarrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function SearchTypeMenuNarrow({typeMenuItems, activeItemIndex, queryJSON, title,
shouldShowRightIcon: isSelected,
success: isSelected,
containerStyle: isSelected ? [{backgroundColor: theme.border}] : undefined,
shouldCallAfterModalHide: true,
};
});

Expand All @@ -95,6 +96,7 @@ function SearchTypeMenuNarrow({typeMenuItems, activeItemIndex, queryJSON, title,
containerStyle: undefined,
iconRight: Expensicons.Checkmark,
shouldShowRightIcon: false,
shouldCallAfterModalHide: true,
});
}

Expand Down Expand Up @@ -137,6 +139,7 @@ function SearchTypeMenuNarrow({typeMenuItems, activeItemIndex, queryJSON, title,
/>
),
isSelected: currentSavedSearch?.hash === item.hash,
shouldCallAfterModalHide: true,
pendingAction: item.pendingAction,
disabled: item.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE,
}));
Expand Down

0 comments on commit 4e48d45

Please sign in to comment.