simontonsoftware / s-libs

A collection of libraries for any of javascript, rxjs, or angular.
MIT License
43 stars 5 forks source link

[ng-core] [WrappedFormControlSuperclass] innerControl does not get marked as touched/dirty #38

Closed DmitryEfimenko closed 3 years ago

DmitryEfimenko commented 3 years ago

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.