Bogdan Crișu
Bogdan Crișu

Reputation: 53

Angular 2 Checkbox Validations Class

I have an checkbox input type inside of a formGroup with Validators.required set. The problem is when i make a click on the checkbox validations class ng-untouched is not changint into ng-touched. How can i fix this problem ?

Thank's

Upvotes: 1

Views: 224

Answers (1)

i7nvd
i7nvd

Reputation: 1318

ng-touched only shows up after the input is no longer in focus. So check the checkbox, and then then click somewhere else on the screen after. Does that fix it?

Upvotes: 0

Related Questions