My example code can be found here: https://try.mudblazor.com/snippet/QYwpPPwgBPfgLWSf
I have an issue that MudSelects in custom components and in the main page do not show validation errors when changing focus. The example text field does show a validation error that it is empty the moment you tab out of it without setting a value.
Additionally, you can see that validation does happen, as the text below the form does show that the form is invalid when selections are not made. But fields are not highlighted.
Main page:
<MudForm @bind-IsValid="@_isFormValid"><MudSelect T="string" @bind-Value="_car" Label="Car" Required="true"><MudSelectItem T="string" Value="@("City")"></MudSelectItem><MudSelectItem T="string" Value="@("Track")"></MudSelectItem><MudSelectItem T="string" Value="@("Limo")"></MudSelectItem></MudSelect><ColorSelector @bind-Color="_color"/><MudTextField @bind-Value="_text" Label="Text field" Variant="Variant.Text" Required="true"/></MudForm>@if (_isFormValid){<MudText>Valid</MudText>}else{<MudText>NOT Valid</MudText>}@code { private string _color; private string _car; private bool _isFormValid; private string _text;}Color selector:
@using System.Linq.Expressions<MudSelect T="string" @bind-Value="_color" Label="Color" Required="true"><MudSelectItem T="string" Value="@("Red")"></MudSelectItem><MudSelectItem T="string" Value="@("Green")"></MudSelectItem><MudSelectItem T="string" Value="@("Blue")"></MudSelectItem></MudSelect>@code { [Parameter] public string? Color { get;set; } [Parameter] public EventCallback<string?> ColorChanged { get; set; } [Parameter] public Expression<string?> TestExpression { get; set; } private string? _color;}Expected result:When tabbing out of the unselected/empty MudSelect I want to show a red border and error message the same as it is done for the text field.