Closed enchev closed 2 months ago
This is due to a bug fix in the razor compiler: https://github.com/dotnet/razor/issues/8854 - component parameters are now case insensitive at compile-time (they were always case insensitive at runtime).
But I think your example never worked at runtime - it results in:
I'm not sure what you are trying to achieve, but because Blazor matches component parameters case-insensitively, the autocomplete=off
won't be passed to the IReadOnlyDictionary<string, object> Attributes
when you also have [Parameter] public bool AutoComplete { get; set; }
.
The following custom component cannot be compiled using .NET SDK 9.0.100-rc.1: CustomComponent.razor
Home.razor
Adding global.json to the project referring to .NET 8 will enable normal compilation: