Skip to content

Default value for an 'array' type #741

Open
@mnzaki

Description

@mnzaki

Enhancement

As a user/developer, when I set a default value for an 'array' type schema then the array should be populated with those values to begin with, just like with other types ('string', 'number', etc)

Actual behaviour

value of the 'default' key is ignored for arrays
further if I set the 'startEmpty' option to true, then the array defaults are in fact used but they render all wonky (model is fine, but the rendered form elements are empty until you click on them)

@json-schema-form/angular-schema-form-lead

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions