Skip to content

Commit

Permalink
feat(module:form): support touched status update (#1861)
Browse files Browse the repository at this point in the history
close #1665
  • Loading branch information
vthinkxie authored and 执衡 committed Jul 22, 2018
1 parent c1f15b6 commit 27ca5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/form/nz-form-control.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class NzFormControlComponent extends NzColComponent implements OnDestroy,
}

updateValidateStatus(status: string): void {
if (this.validateControl.dirty) {
if (this.validateControl.dirty || this.validateControl.touched) {
this.controlStatus = status;
this.setControlClassMap();
} else {
Expand Down

0 comments on commit 27ca5bc

Please sign in to comment.