You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With multiple checkboxes as part of an array, Formsy throws an error because formsy-material-ui/checkbox automatically sets checked to be the value of the checkbox.
With multiple checkboxes as part of an array, Formsy throws an error because formsy-material-ui/checkbox automatically sets checked to be the value of the checkbox.
https://github.com/mbrookes/formsy-material-ui/blob/master/src/FormsyCheckbox.jsx#L30
Unfortunately if you are trying to save actual values in an array, this falls apart. Example:
Material UI enhanced switch component PropTypes require that checked be a boolean here:
https://github.com/callemall/material-ui/blob/master/src/enhanced-switch.jsx#L77
So in your component you need to allow for value to be a string and separate from the checked prop if both are defined.
The text was updated successfully, but these errors were encountered: