foxhound87 / mobx-react-form

Reactive MobX Form State Management
https://foxhound87.github.io/mobx-react-form
MIT License
1.1k stars 129 forks source link

No longer able to use components in form config (labels, placeholders, ...) #572

Closed evstinik closed 3 years ago

evstinik commented 3 years ago

Hi, latest version of mobx-react-form (3.1) and mobx (6.1) seems to be failing on common use case which was working on previous version we were using (mobx 5.15, mobx-react-form 1.39).

Code sandbox with reproduced problem: https://codesandbox.io/s/form-quickstart-forked-qhokp?file=/form.js

When I specify component instead of plain string as a value for label or placeholder it's failing with different errors:

foxhound87 commented 3 years ago

You should not pass component as label, it should be a string. The other errors are not related to the library.

evstinik commented 3 years ago

Ok, thanks