Which @angular/* package(s) are relevant/related to the feature request?
forms
Description
Currently, using Validators.required, Validators.minLength and Validators.maxLength validators don't work with sets. This is because a set has a size property instead of a length property.
Proposed solution
Validators.required, Validators.minLength and Validators.maxLength validators should work with sets.
Example:
const control = new FormControl(new Set(), [Validators.required])
PR
I already created a PR which in my eyes solved the issue: #45793 (PR has been closed).
Which @angular/* package(s) are relevant/related to the feature request?
forms
Description
Currently, using
Validators.required,Validators.minLengthandValidators.maxLengthvalidators don't work with sets. This is because a set has asizeproperty instead of alengthproperty.Proposed solution
Validators.required,Validators.minLengthandValidators.maxLengthvalidators should work with sets.Example:
PR
I already created a PR which in my eyes solved the issue: #45793 (PR has been closed).