merkle-open / aem-generic-multifield

Generic Multifield component dialog extension for AEM
MIT License
15 stars 6 forks source link

6.3/feature/required validation #17

Closed suciua closed 6 years ago

suciua commented 6 years ago

The "minElements" validation didn't work for the field visibility because it validated the generic multifield even if hidden.

The fix is to introduce a "required" attribute and only validate the min- and maxElements if the required attribute is set to true.