-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
area: formseffort2: daysfeatureLabel 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 considerationfreq1: lowrisk: low
Milestone
Description
🚀 feature request
Relevant Package
This feature request is for @angular/forms
Description
Custom form field by implementing ControlValueAccessor missing the ability to mark untouched.
For my problem, I encapsulated a input field with a long list of error messages into a custom form field. Inside this custom form field component, it has it's private formControl, handling the validation and error display, etc. If I implement this interface to make a bridge between this private formControl with the outside world formControl, there is no way I can mark that private formControl untouched to clear the error message. So I really need a setTouchedState just like setDisabledState.
Describe the solution you'd like
Add setTouchedState method in ControlValueAccessor interface. Hopefully it's not a big change.
Describe alternatives you've considered
Not really.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: formseffort2: daysfeatureLabel 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 considerationfreq1: lowrisk: low