Open arime opened 4 years ago
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:
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:
On the other hand, this works fine:
Playground example situation: