-
Notifications
You must be signed in to change notification settings - Fork 436
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
Seeing "Form Mixin requires component to be nested in a Form" #110
Comments
You have to wrap all your form elements in a Formsy.Form: <Formsy.Form>
<MyInputElement/>
</Formsy.Form> |
I can improve that error message to be more explicit :-) |
Well, I already do, sort of, but nested: <Formsy.Form>
<Row>
<MyInputElement/>
</Row>
</Formsy.Form> is this supported? |
This is supported yes, but not when the Form is located in a different component... a different render method |
@binarykitchen I had the same problem. I needed to have a form with different inputs depending on country:
Instead of making BTW, thanks for this awesome lib, @christianalfoni :) |
@firstdoit , You are perfectly right :-) Looking forward to React 0.14 with parent-child context though, then this will not be an issue anymore! Thanks for the feedback, much appreciated ;-) |
Nice! Looking forward indeed. |
but no idea why. This with the latest version. Any clues?
The text was updated successfully, but these errors were encountered: