From dca0895bf80291e24de6ebed09116259d4488fc2 Mon Sep 17 00:00:00 2001 From: Hsuan Lee Date: Fri, 13 Oct 2017 23:01:35 -0500 Subject: [PATCH] fix(module:datepicker): data binding not work when mode is month (#421) --- src/components/datepicker/nz-datepicker.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/datepicker/nz-datepicker.component.ts b/src/components/datepicker/nz-datepicker.component.ts index 31d0e5d8a9a..a1c07bb4a3c 100644 --- a/src/components/datepicker/nz-datepicker.component.ts +++ b/src/components/datepicker/nz-datepicker.component.ts @@ -322,6 +322,7 @@ export class NzDatePickerComponent implements ControlValueAccessor, OnInit { if (this.nzMode === 'month') { this._closeCalendar(); this.nzValue = moment(this.nzValue).year(this._showYear).month(month.index).toDate(); + this.onChange(this._value); } else { this._showMonth = month.index; this._mode = 'year';