Skip to content

Commit

Permalink
feat(module:form): support touched status update (NG-ZORRO#1861)
Browse files Browse the repository at this point in the history
  • Loading branch information
vthinkxie authored and 执衡 committed Jul 22, 2018
1 parent 34752cc commit 65c8fdc
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 65c8fdc

Please sign in to comment.