Skip to content

fix(ui): use value for checkbox state if checked is undefined

Tamlyn Rhodes requested to merge checkbox-value into master

This makes the Checkbox API more similar to other inputs which in turn makes it easier to use with Formik.

In HTML the value attribute can be used to set the form value which will be submitted when the checkbox is checked but this doesn't appear to be supported in React. So I think that this change is safe.

Merge request reports