-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Closed
Labels
area: formsfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration
Milestone
Description
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).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: formsfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under consideration