Skip to content

maxItems and minIetms seem to be ignored in arrays #35

@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

Activity

ashram99

ashram99 commented on Nov 28, 2016

@ashram99
Author

Nevermind. I assumed that the demo was using the bootstrap decorator, but testing it locally it works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @ashram99

        Issue actions

          maxItems and minIetms seem to be ignored in arrays · Issue #35 · json-schema-form/angular-schema-form-bootstrap