-
-
Notifications
You must be signed in to change notification settings - Fork 245
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
SimpleSchema: minCount arrays with options set empty checkboxes #691
Comments
Hi @danyhiol, We've patched displaying empty boxes, but still, you should include the
You can also check it on playground here. |
@kestarumper that's great. |
@kestarumper sry but i'll have to disturb you again with another issue that might be related to this one. check this schema:
The regEx ( |
Hi @danyhiol, After the initial investigation, we've identified that's a problem with a field and how it displays its errors. Please create a separate issue for that. Thanks for pointing that out. |
When defining an
array
schema withminCount
andoptions
,AutoForm
renders the field with emptycheckboxes
.Consider the following schema:
On the playground, this will result in a
SelectField
with 2 empty checkboxes. More over, no validation will be apply even taught no options is choosen when submitting the form. Meaning the array field is prepopulated with null values that are consider as valid from the schema.minCount
. It should be empty and validated.The text was updated successfully, but these errors were encountered: