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 managed to create good nested form basic functionality. Nested forms add their values to root form values[nestedFormName]object and save their statuses into root form status.form[nestedFormName] object.
Only problem which I found is dirtyFocusOnErrros and resetFocus method functionality. I was surprised when I found that my implementation can treat nested forms as fields, which is obvious because input and form data transferring API are almost identical, so I decided to fix focus behavior of the nested forms by providing them dirty and focus data from the parent form, which will be recorded to root form status.dirty and status.focus objects. I'm going to try just pass root form status.dirty[nestedFormName] && status.focus[nestedFormName] as dirtyFocusOnErrors property of the nested form. Another question is nested form focus reset, but I think I'll find some way to solve it.
The text was updated successfully, but these errors were encountered:
I managed to create good nested form basic functionality. Nested forms add their values to root form values[nestedFormName]object and save their statuses into root form status.form[nestedFormName] object.
Only problem which I found is dirtyFocusOnErrros and resetFocus method functionality. I was surprised when I found that my implementation can treat nested forms as fields, which is obvious because input and form data transferring API are almost identical, so I decided to fix focus behavior of the nested forms by providing them dirty and focus data from the parent form, which will be recorded to root form status.dirty and status.focus objects. I'm going to try just pass root form status.dirty[nestedFormName] && status.focus[nestedFormName] as dirtyFocusOnErrors property of the nested form. Another question is nested form focus reset, but I think I'll find some way to solve it.
The text was updated successfully, but these errors were encountered: