Skip to content

Default value not populating checkboxes #30

Closed
@adamschwartz

Description

@adamschwartz

Repro steps:

  • Visit the demo
  • Enter [*] for the form and the following schema:
{
    "type": "object",
    "properties": {
        "flavors": {
            "title": "Flavors",
            "type": "array",
            "items": {
                "enum": [
                    "Chocolate",
                    "Vanilla"
                ]
            },
            "default": ["Chocolate"]
        }
    }
}

Observe that the "Chocolate" checkbox is not checked.

I believe this is because after ng-init="checkboxValues = {}", checkboxValues is never being set with the default passed in via the schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions