-
Notifications
You must be signed in to change notification settings - Fork 52
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 form submits container form #158
Comments
can you post some trimmed down code demonstrating the issue? thanks! |
Something like this
...
....
|
I took a look at some of the source code and I can't find where the NestedForm component is exported - I was using the regular form, maybe that's the problem? |
so What i think may be happening is the native |
Thanks for the quick response - that seems to have done the trick! 👍 |
Just now discovering this library. Wish I knew about it before embarking on my own. I would love to join forces. @jquense, I haven't dug into your code yet, but if you're doing it like you do in topeka (and like I am), then you're providing a context in the |
@thejohnfreeman I'm confused as to how this solves my problem? or was that just a general suggestion? |
Sorry, @racheldelman, it's a suggestion to @jquense for how to fix this problem in the library, not for you as a user. |
oh ok thanks! as I said before the NestdForm doesn't even seem to be exported anywhere so I assume this is more to fix there as well |
thats a good idea @thejohnfreeman for setting the default inner element 👍 |
I have a form that has a fieldArray in it - that field array uses a form inside with a submit button. Right now whenever the nested form gets submitted it also calls the container's onSubmit. Is that expected behavior or am I doing something wrong?
The text was updated successfully, but these errors were encountered: