Closed marin-bratanov closed 4 years ago
@marin-bratanov thanks for contacting us.
Does it work if you disable the linker?
@pranavkm do you have any thoughts?
No, it doesn't.
I had tested initially with the linker disabled, sorry for not pointing this out in my initial post.
I would expect it to work both ways, though :)
This issue was moved to mono/mono#19022
Describe the bug
The
[MinLength]
data validation attribute works nicely for lists in server-side blazor, but throws in WASM blazor.To Reproduce
This snippet works in server blazor, but not in WASM blazor
Repro steps:
Expected: works
Actual: throws on Add click in WASM
Exception stack trace
Further technical details
dotnet --info
$ dotnet --info .NET Core SDK (reflecting any global.json): Version: 3.1.200-preview-014977 Commit: ca5522cead
Runtime Environment: OS Name: Windows OS Version: 10.0.18363 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\3.1.200-preview-014977\
Host (useful for support): Version: 3.1.1 Commit: a1388f194c
.NET Core SDKs installed: 3.1.101 [C:\Program Files\dotnet\sdk] 3.1.200-preview-014883 [C:\Program Files\dotnet\sdk] 3.1.200-preview-014977 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download