-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
Validators.minLength(x) doesn't work on FormArray #13089
Labels
Comments
DzmitryShylovich
pushed a commit
to DzmitryShylovich/angular
that referenced
this issue
Nov 25, 2016
DzmitryShylovich
pushed a commit
to DzmitryShylovich/angular
that referenced
this issue
Nov 25, 2016
DzmitryShylovich
pushed a commit
to DzmitryShylovich/angular
that referenced
this issue
Nov 25, 2016
DzmitryShylovich
pushed a commit
to DzmitryShylovich/angular
that referenced
this issue
Nov 25, 2016
DzmitryShylovich
pushed a commit
to DzmitryShylovich/angular
that referenced
this issue
Nov 25, 2016
DzmitryShylovich
pushed a commit
to DzmitryShylovich/angular
that referenced
this issue
Nov 25, 2016
vicb
pushed a commit
that referenced
this issue
Dec 12, 2016
vicb
pushed a commit
that referenced
this issue
Dec 15, 2016
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current behavior
When adding
Validators.minLength(x)
to aFormArray
it will not validate. The error also containsactualLength: 0
instead of the actual number of controls in the array.The validator now only works on
FormControl
, see PR for the breaking changeExpected behavior
The validator should validate the number of controls in a
FormArray
. This works in Angular 2.0.2 and lower.Minimal reproduction of the problem with instructions
http://plnkr.co/edit/bIVqpHvioZkjf9NEC7MB. The initial
actualLength
is 0 .When you add or remove aFormControl
it will not change.The text was updated successfully, but these errors were encountered: