Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

[Validate] minCount does not work for 1

Open princeandrew01 opened this issue 11 years ago • 3 comments

Good Day,

I was using the minCount validation to validate a multiple select field. initially I just wanted to make sure that the field was not empty, so I tried to use the empty but that did not work .Then I tried the minCount[1] and it did not validate. Finally I changed the 1 to 2 and it worked but it is checking for 2 elements.

I am trying to use JSFiddle to post some sample code but I am not getting it to display the multi select dropdown.

EDIT: Updated the JSFiddle: has minCount set to 1: http://jsfiddle.net/rduvhn8u/79/ has minCount set to 2: http://jsfiddle.net/rduvhn8u/78/

princeandrew01 avatar Jul 14 '15 18:07 princeandrew01

Fixed in next. I'll try to add sometime soon individual examples for each form validation rule to help facilitate testing and experimentation.

jlukic avatar Jul 14 '15 21:07 jlukic

I've added examples for each validation type to docs. http://semantic-ui.com/behaviors/form.html#rule-examples

jlukic avatar Jul 15 '15 23:07 jlukic

Thanks so much! Great examples!

princeandrew01 avatar Jul 16 '15 00:07 princeandrew01