formsy / formsy-react

A form input builder and validator for React JS
MIT License
763 stars 126 forks source link

getModel() is empty #711

Closed alqa-dash closed 1 year ago

alqa-dash commented 1 year ago

v2.3.0 with react[-dom] 16.14.0 this.refs.form.getModel() is empty for form like this:

`

... {this.state.data.claims.map((claim, i) => ( ))} ...

`

Same code worked with react[-dom]@15.4.2 and formsy-react@0.19.0.

Have I missed something?

UPDATE: looks like attachToForm call is not happening when <Formsy ...> has been used. How can I make it work?

alqa-dash commented 1 year ago

Actually it's my fault: I thought Formsy should work without withFormsy. Closing issue.