foxhound87 / mobx-react-form

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

cannot change disabled prop on fields #609

Closed danseedo closed 2 years ago

danseedo commented 2 years ago

When attempting to set the disabled prop on a field, form.$('some_field').set('disabled', true), I get an error, The selected property is not allowed (["disabled"]). Is dynamically disabling a field not supported?

foxhound87 commented 2 years ago

Are you using the next version? It should work but I think I made a mistake when refactoring because there is no test for the case. I will fix it asap and provide a test case.

danseedo commented 2 years ago

Yes, this was for version 5.3.0. It works fine in 3.2.0.

github-actions[bot] commented 2 years ago

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

The release is available on:

Your semantic-release bot :package::rocket: