|
|
|
@ -76,13 +76,18 @@ public partial class SimpleSelect<ValueType> : InputBase
|
|
|
|
|
|
|
|
|
|
protected override async Task OnParametersSetAsync()
|
|
|
|
|
{
|
|
|
|
|
if (base.InputAttributes is null) base.InputAttributes = new();
|
|
|
|
|
if (base.Required)
|
|
|
|
|
{
|
|
|
|
|
if (base.InputAttributes.ContainsKey("required")) base.InputAttributes.Add("required", true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
OriginalItems = Items;
|
|
|
|
|
if (_searchText.Length>0) await FilterItems();
|
|
|
|
|
await base.OnParametersSetAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
|
|
|
{
|
|
|
|
|
await base.OnInitializedAsync();
|
|
|
|
|
if (Required)
|
|
|
|
|
{
|
|
|
|
|
if (InputAttributes.ContainsKey("required")) InputAttributes.Add("required", true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|