diff --git a/src/components/checkbox/nz-checkbox.component.ts b/src/components/checkbox/nz-checkbox.component.ts index 0d280985db4..eab41f23e01 100644 --- a/src/components/checkbox/nz-checkbox.component.ts +++ b/src/components/checkbox/nz-checkbox.component.ts @@ -20,7 +20,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; [ngClass]="_inputPrefixCls" [ngModel]="nzChecked" (focus)="nzFocus()" - (blur)="nzBlur()"> + (blur)="onTouched();nzBlur()"> `, diff --git a/src/components/datepicker/nz-datepicker.component.ts b/src/components/datepicker/nz-datepicker.component.ts index d82854ceed4..41d0178edba 100644 --- a/src/components/datepicker/nz-datepicker.component.ts +++ b/src/components/datepicker/nz-datepicker.component.ts @@ -29,6 +29,7 @@ import { ConnectionPositionPair } from '../core/overlay/index'; #trigger> + (click)="onTouched();_clearValue($event)"> diff --git a/src/components/input-number/nz-input-number.component.ts b/src/components/input-number/nz-input-number.component.ts index 7081244c541..9874dda3902 100644 --- a/src/components/input-number/nz-input-number.component.ts +++ b/src/components/input-number/nz-input-number.component.ts @@ -37,7 +37,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; class="ant-input-number-input-wrap"> @@ -93,6 +94,7 @@ import { TagAnimation } from '../core/animation/tag-animations';
@@ -591,6 +593,7 @@ export class NzSelectComponent implements OnInit, AfterContentInit, AfterContent if (!this.nzOpen) { return; } + this.onTouched(); if (this.nzMultiple) { this._renderer.removeStyle(this.searchInputElementRef.nativeElement, 'width'); } diff --git a/src/components/time-picker/nz-timepicker.component.ts b/src/components/time-picker/nz-timepicker.component.ts index 4f415a96468..09e96d78601 100644 --- a/src/components/time-picker/nz-timepicker.component.ts +++ b/src/components/time-picker/nz-timepicker.component.ts @@ -30,6 +30,7 @@ import { ConnectionPositionPair } from '../core/overlay/index'; class="ant-time-picker-input" [attr.placeholder]="nzPlaceHolder" (click)="_openCalendar()" + (blur)="onTouched()" [value]="_value|nzDate:_format">