Skip to content

Commit

Permalink
Merge pull request #49058 from bernhardoj/fix/48543-search-type-selec…
Browse files Browse the repository at this point in the history
…ted-option-isnt-highlighted

Fix search type selected item isn't highlighted
  • Loading branch information
lakchote authored Sep 13, 2024
2 parents 5fd937e + bdd00d7 commit 1a43284
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/Search/SearchTypeMenuNarrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function SearchTypeMenuNarrow({typeMenuItems, activeItemIndex, queryJSON, title}
SearchActions.clearAllFilters();
Navigation.navigate(item.route);
}),
isSelected,
icon: item.icon,
iconFill: isSelected ? theme.iconSuccessFill : theme.icon,
iconRight: Expensicons.Checkmark,
Expand All @@ -66,6 +67,7 @@ function SearchTypeMenuNarrow({typeMenuItems, activeItemIndex, queryJSON, title}
popoverMenuItems.push({
text: title,
onSelected: closeMenu,
isSelected: true,
icon: Expensicons.Filters,
iconFill: theme.iconSuccessFill,
success: true,
Expand Down

0 comments on commit 1a43284

Please sign in to comment.