Skip to content
This repository was archived by the owner on Jun 1, 2020. It is now read-only.
This repository was archived by the owner on Jun 1, 2020. It is now read-only.

Default value 0 for integer or number type property is not working #179

@arime

Description

@arime

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:

Screenshot 2020-02-20 at 19 03 03

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions