diff --git a/src/MudBlazor/Components/Picker/MudPicker.razor b/src/MudBlazor/Components/Picker/MudPicker.razor index 8c6727471c74..6de709a5d1db 100644 --- a/src/MudBlazor/Components/Picker/MudPicker.razor +++ b/src/MudBlazor/Components/Picker/MudPicker.razor @@ -23,6 +23,7 @@ Variant="@Variant" ReadOnly="@(!Editable || GetReadOnlyState())" Disabled="@GetDisabledState()" + DisableUnderLine="@DisableUnderLine" OnAdornmentClick="ToggleState" Adornment="@Adornment" AdornmentIcon="@AdornmentIcon" diff --git a/src/MudBlazor/Components/Picker/MudPicker.razor.cs b/src/MudBlazor/Components/Picker/MudPicker.razor.cs index 6388cfbcbd08..3c6bd9b5cfbf 100644 --- a/src/MudBlazor/Components/Picker/MudPicker.razor.cs +++ b/src/MudBlazor/Components/Picker/MudPicker.razor.cs @@ -1,10 +1,8 @@ using System; using System.Diagnostics.CodeAnalysis; -using System.Text.RegularExpressions; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; -using MudBlazor.Interfaces; using MudBlazor.Services; using MudBlazor.Utilities; @@ -171,6 +169,13 @@ public string InputIcon [CascadingParameter(Name = "ParentDisabled")] private bool ParentDisabled { get; set; } protected bool GetDisabledState() => Disabled || ParentDisabled; + /// + /// If true, the input will not have an underline. + /// + [Parameter] + [Category(CategoryTypes.FormComponent.Appearance)] + public bool DisableUnderLine { get; set; } + /// /// If true, no date or time can be defined. ///