Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested forms implementation. #32

Open
Neketek opened this issue Mar 13, 2018 · 0 comments
Open

Nested forms implementation. #32

Neketek opened this issue Mar 13, 2018 · 0 comments
Assignees
Labels
bug Something isn't working front-end

Comments

@Neketek
Copy link
Owner

Neketek commented Mar 13, 2018

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.

@Neketek Neketek self-assigned this Mar 13, 2018
@Neketek Neketek added bug Something isn't working front-end labels Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working front-end
Projects
None yet
Development

No branches or pull requests

1 participant