Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
When I try to add a MudBlazor Autocomplete control to a new Blazor WASM project, I get the following error
Expected Behavior
Build and run project
Steps To Reproduce
dotnet new blazorwasm
Follow getting started steps for MudBlazor
https://github.com/MudBlazor/MudBlazor#quick-installation-guide
Create simple result class
public class SearchBarResultView
{
public string Text {get; set;}
}
Than add Autocomplete component to Index.razor with Search function
<MudAutocomplete T="SearchBarResultView" Label="US States" @bind-Value="selectedResult" SearchFunc="@Search2" />
private async Task<IEnumerable<SearchBarResultView>> Search1(string value)
{
return new List<SearchBarResultView>();
}
If you build you should get the above error. I pinned with global.json to .NET 6 and do not have issues.
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response
Activity