Skip to content

maxItems and minIetms seem to be ignored in arrays #35

Open
@ashram99

Description

@ashram99

Looking at the code of the array.html, I see that the remove button is supposed to be disabled when the array is <= minItems and similarly add is supposed to be disabled when the array is >= maxItems; however that doesn't seem to work.

You can see it on the schema form demo itself.

Expected behaviour

add and remove button to be disabled, based on maxItems and minItems, respectively.

Actual behaviour

maxItems is set to 2, but the add button is never disabled, no matter how many you add. Same for the remove button if you set minItems.

Gist/Plunker/Demo

Schema Form Demo

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