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

Feature/min items #306

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jscharett
Copy link
Contributor

PR Type

What changes does this PR include (check all that apply)?
[x] Bugfix

Related issue / current behavior

When generating a formArray, there is an empty formControl generated. This results in the minItems validator returning true when minItems=1, even though the array is empty/missing.

New behavior

minItems now correctly catches empty/missing arrays

Does this PR introduce a breaking change?

[x] Yes
[ ] No

This PR corrects a typo, changing defautWidgetOptions to defaultWidgetOptions.

Copy link

@herman1vdb herman1vdb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The defautWidgetOptions typo got me for a while. This PR should've probably been split in 2. eg. Fix typo defautWidgetOptions and Fix formArray minItems validation

@jscharett
Copy link
Contributor Author

Agreed, I should have split it, but was in a hurry to get this into my project. I'm usually better about this type of stuff.

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

Successfully merging this pull request may close these issues.

None yet

2 participants