Overriding markAsTouched function results indeed marks the outerControl as touched when innerControl is touched, but it does not mark the innerControl as touched.
Ideally, the inner and outer controls should be synchronized.
Without this functionality, ng-touched class is not applied to the inner input element. Some applications rely on the existence of the class for styling purposes.
Overriding
markAsTouched
function results indeed marks the outerControl as touched when innerControl is touched, but it does not mark the innerControl as touched.Ideally, the inner and outer controls should be synchronized.
Without this functionality,
ng-touched
class is not applied to the inner input element. Some applications rely on the existence of the class for styling purposes.The same goes for the
dirty/pristine
state.