Topic: reactive formms - mark input as invalid on submit
Karol Suchecki asked 7 years ago
hi.I use mdbInputDirective on input in form. On blur event when input is invalid then validation is displayed. I want to use same behaviour when I submit form and mark all inputs as touched:
Object.keys(this.beerForm.controls).forEach(field=> {constcontrol=this.beerForm.get(field);control.markAsTouched({ onlySelf:true });});
Unfortunately nothing happen
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Open
Specification of the issue
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Karol Suchecki commented 6 years ago
anybody?