Skip to content

Commit

Permalink
AutoComplete: Fixed selected item color
Browse files Browse the repository at this point in the history
  • Loading branch information
Garderoben committed Apr 26, 2022
1 parent ab96e42 commit e627f16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
var item = _items[index];
bool is_selected = index == _selectedListItemIndex;
bool is_disabled = !_enabledItemIndices.Contains(index);
<MudListItem @key="@item" id="@GetListItemId(index)" Disabled="@(is_disabled)" OnClick="@(async() => await ListItemOnClick(item))" OnClickHandlerPreventDefault="true" Class="@(is_selected ? "mud-selected-item" : "")">
<MudListItem @key="@item" id="@GetListItemId(index)" Disabled="@(is_disabled)" OnClick="@(async() => await ListItemOnClick(item))" OnClickHandlerPreventDefault="true" Class="@(is_selected ? "mud-selected-item mud-primary-text mud-primary-hover" : "")">
@if (ItemTemplate == null)
{
@GetItemString(item)
Expand Down

0 comments on commit e627f16

Please sign in to comment.