You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior
Calling markAsTouched on a FormGroup doesn't mark their children controls as touched.
Expected behavior
Calling markAsTouched on a FormGroup should set the touched flag of their children controls. Actually, the opposite method, markAsUntouched, is affecting the children controls.
What is the motivation / use case for changing the behavior?
I have some styles that rely on the touched state. In some cases and need to set manually the touched state for all the controls, for example, after the user clicks on the save button.
Angular version:
2.1
dougludlow, vano-maisuradze, chrisnicola, nguyenbathanh, Ismaestro and 6 more