rjsf-material-ui
rjsf-material-ui copied to clipboard
Default value 0 for integer or number type property is not working
When an integer or number type property has a default value of 0 defined, the value ends up in form data but it is not reflected on the form itself, leaving the field empty. A non-zero default value works.
For example this does not work:
"age": {
"type": "integer",
"default": 0
}
On the other hand, this works fine:
"age": {
"type": "integer",
"default": 1
}
Playground example situation: