You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried several different validation libraries with no luck. This would seem to be a common use-case but I've been able to find a solution.
Issue:
When using a EditForm in a parent component, child components do not emit their validation state up to parent.
Current Attempt
Registering the EditContext as a CascadingParameter on the child. When validation is requested from the parent try and update the EditContext message store to include the invalid fields from the child.
Info:
The validators both work and validate as expected and the child component does correctly get notified when validation is requested on the EditContext.
The text was updated successfully, but these errors were encountered:
This is POC repo which demonstrates the issue and what I've tried so far
https://github.com/[Bond-Addict/NestedValidation](https://github.com/Bond-Addict/NestedValidation)
I've tried several different validation libraries with no luck. This would seem to be a common use-case but I've been able to find a solution.
Issue:
When using a EditForm in a parent component, child components do not emit their validation state up to parent.
Current Attempt
Registering the EditContext as a
CascadingParameter
on the child. When validation is requested from the parent try and update the EditContext message store to include the invalid fields from the child.Info:
The validators both work and validate as expected and the child component does correctly get notified when validation is requested on the EditContext.
The text was updated successfully, but these errors were encountered: