codeandcognition / koconut

a very cool assess pool
2 stars 0 forks source link

checkbox questions have inconsistent control #347

Open bxie opened 5 years ago

bxie commented 5 years ago

When submitting responses for a checkbox question (e.g. follow-up for "Can you read variable updates?"), get following warning:

A component is changing an uncontrolled input of type checkbox to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component.

Not aware that this causes bugs or unintended behavior.

more on this: https://reactjs.org/docs/forms.html#controlled-components

image