Hello,
Angular - Demo 1
I am working on the wizard and was trying to use formGroup with Validations.
Trying to use markAllasTouched or any control or form methods inside change event of the wizard which is not working fine.
Can you guys please help me out in this? am I doing something wrong? or is this a bug in the event triggering or may be it is JavaScript?
Thanks,
DP
I had a similar issue not long ago. When using markAllAsTouched() inside the change event of a wizard step, it didn’t always work as expected either. I found that wrapping it in a setTimeout helped, probably because the view needs a moment to update before the validation kicks in. Also, double-check that your formGroup and all controls are properly initialized before calling any methods on them. It’s not necessarily a bug, just how Angular timing works sometimes. Hope that helps!
Hi,
Try to call changeDetection
after using markAllasTouched,
Here is the more details:
Regards,
Keenthemes support
Here is the stackoverflow question link as well.
<a>