diff --git a/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBox.razor b/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBox.razor
index 4591f2bc..7d3a148e 100644
--- a/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBox.razor
+++ b/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBox.razor
@@ -145,8 +145,8 @@
+ Color="@EffectiveCheckBoxCheckedColor"
+ UnCheckedColor="@EffectiveCheckBoxUnCheckedColor" />
@SelectAllText
diff --git a/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBox.razor.cs b/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBox.razor.cs
index fe6a74e5..c874f371 100644
--- a/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBox.razor.cs
+++ b/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBox.razor.cs
@@ -265,18 +265,18 @@ protected internal void SetSearchString(T value)
///
/// The color of the checked checkbox. It supports the theme colors.
///
- /// The default is
+ /// The default is
[Parameter]
[Category(CategoryTypes.List.Behavior)]
- public Color CheckBoxCheckedColor { get; set; } = Color.Primary;
+ public Color? CheckBoxCheckedColor { get; set; } = null;
///
/// The color of the unchecked checkbox. It supports the theme colors.
///
- /// The default is
+ /// The default is
[Parameter]
[Category(CategoryTypes.Radio.Appearance)]
- public Color CheckBoxUnCheckedColor { get; set; } = Color.Default;
+ public Color? CheckBoxUnCheckedColor { get; set; } = null;
///
/// The size of the checkbox.
@@ -1484,5 +1484,8 @@ protected bool HasEligibleItems()
protected internal Typo GetTypo() => Dense == Dense.Slim || Dense == Dense.Superslim ? Typo.body2 : Typo.body1;
protected internal ValueTask ScrollToMiddleAsync(MudComboBoxItem item) => item is not null ? ScrollManagerExtended.ScrollToMiddleAsync(_popoverId, item.ItemId) : ValueTask.CompletedTask;
+
+ protected internal Color EffectiveCheckBoxCheckedColor => CheckBoxCheckedColor ?? Color;
+ protected internal Color EffectiveCheckBoxUnCheckedColor => CheckBoxUnCheckedColor ?? Color;
}
}
diff --git a/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBoxItem.razor b/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBoxItem.razor
index 8da94149..39dca30d 100644
--- a/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBoxItem.razor
+++ b/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBoxItem.razor
@@ -12,8 +12,8 @@
}
diff --git a/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBoxItem.razor.cs b/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBoxItem.razor.cs
index ff2f8070..a72cca44 100644
--- a/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBoxItem.razor.cs
+++ b/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBoxItem.razor.cs
@@ -206,18 +206,8 @@ protected void SyncSelected()
protected async Task HandleOnClick()
{
- //Selected = !Selected;
await MudComboBox.ToggleOption(this, !Selected);
- //await MudComboBox?.SelectOption(Value);
await InvokeAsync(StateHasChanged);
- //if (MudComboBox.MultiSelection == false)
- //{
- // await MudComboBox?.CloseMenu();
- //}
- //else
- //{
- // await MudComboBox.FocusAsync();
- //}
await MudComboBox.FocusAsync();
await OnClick.InvokeAsync();
}