Open hisuwh opened 3 years ago
Think I've got a fix. Will send a PR
Seems there is also a workaround by setting value as well as checked:
const schema = [
{
type: "checkbox",
name: "myInput",
label: "My Checkbox",
checked: true,
value: true
}
...
]
Describe the bug Creating a form using a json schema with checkboxes with initial value does not set initial value on form submission.
Reproduction https://codepen.io/hisuwh/pen/powJJex
Expected behavior All initial values should be in form submission.
Screenshots
Device information: