Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxItems and minIetms seem to be ignored in arrays #35

Open
ashram99 opened this issue Nov 28, 2016 · 1 comment
Open

maxItems and minIetms seem to be ignored in arrays #35

ashram99 opened this issue Nov 28, 2016 · 1 comment

Comments

@ashram99
Copy link

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

@ashram99
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant