Closed Liero closed 3 years ago
I'm not sure what to make of this. Why would you have a button which calls StateHasChanged? Surely you should be submitting the form? At this point I can't consider this a bug as the code is not a real world scenario.
If you have a real world scenario where the library is erroring then please feel free to reopen the issue and provide a working repro of the problem.
Describe the bug Calling StateHasChanged on the component causes InvalidOperatorException when there is RuleForEach validation rule in the Validator. Additionally the validation error disappears and input is marked as Valid.
To Reproduce
Expected behavior After clicking the button, all invalid Inputs should be marked as invalid and validation messages should be shown.
Hosting Model (is this issue happening with a certain hosting model?):
Additional context .NET 5 RC2