Skip to content

Commit bfb2627

Browse files
authored
Combobox bugfix: HighlightClass is now only applied when Highlight == true (#313)
1 parent 80419bf commit bfb2627

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBoxItem.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public partial class MudComboBoxItem<T> : MudBaseSelectItem, IDisposable
2424
.Build();
2525

2626
protected string HighlighterClassname => new CssBuilder()
27-
.AddClass("mud-combobox-highlighter", string.IsNullOrEmpty(MudComboBox?.HighlightClass))
28-
.AddClass(MudComboBox?.HighlightClass)
27+
.AddClass("mud-combobox-highlighter", MudComboBox is not null && MudComboBox.Highlight && string.IsNullOrEmpty(MudComboBox.HighlightClass))
28+
.AddClass(MudComboBox?.HighlightClass, MudComboBox is not null && MudComboBox.Highlight)
2929
.Build();
3030

3131
internal string ItemId { get; } = string.Concat("_", Guid.NewGuid().ToString().AsSpan(0, 8));

0 commit comments

Comments
 (0)