Closed czuvich closed 1 year ago
@czuvich Take a look at #168
Thanks @Sharaf-Mansour! EditForm is such a mess in Blazor. I ended up modifying the FluentValidationValidator by adding a public ValidationMessageStore property and using that in the EditContextFluentValidationExtensions methods.
Describe the bug I cannot reference the ValidationMessageStore for the EditContext in order to clear the messages using this validator.
To Reproduce Steps to reproduce the behavior:
Expected behavior The ValidationMessageStore should have the validation messages in it.
Additional context It looks like the extensions create a local instance of ValidationMessageStore. Do you have an approach that could reference the ValidationMessageStore in the page consumed by the context? I've included MS guidance on this below.
https://learn.microsoft.com/en-us/aspnet/core/blazor/forms-and-input-components?view=aspnetcore-7.0