maxItems and minIetms seem to be ignored in arrays
ashram99 opened this issue · 1 comments
ashram99 commented
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
ashram99 commented
Nevermind. I assumed that the demo was using the bootstrap decorator, but testing it locally it works as expected.