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

fallback option: fields definitions thru. values not always wanted #505

Closed riceyeh closed 5 years ago

riceyeh commented 5 years ago

Passing {fields, values} to a form constructor will cause fields defined for those properties in values which are not defined in fields. This is not always wanted. For example, when the form is just for editing some parts, which is defined by fields, of the values that comes from somewhere not controlled by the UI developers. I suggest to define a new option fallbackFields with default value true. For those scenarios like the above, it is set false. If this idea is acceptable, I am going to create a pull request.

foxhound87 commented 5 years ago

:tada: This issue has been resolved in version 2.0.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: