Skip to content

Commit

Permalink
Combobox bugfix: HighlightClass is now only applied when Highlight ==…
Browse files Browse the repository at this point in the history
… true
  • Loading branch information
Yomodo committed Oct 20, 2023
1 parent f8039bf commit 460eb89
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public partial class MudComboBoxItem<T> : MudBaseSelectItem, IDisposable
.Build();

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

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

0 comments on commit 460eb89

Please sign in to comment.