Skip to content

Commit

Permalink
fix(module:date-picker): fix not use onOk the next time show error (#258
Browse files Browse the repository at this point in the history
)
  • Loading branch information
nuonuoge authored and Guoyuanqiang committed Jan 21, 2019
1 parent 41f20f5 commit 2f5fc79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/date-picker/date-picker.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export class DatePickerDirective implements OnDestroy, OnChanges, OnInit, Contro
},
updateNgModel: (value: Date): void => {
if (this._ngModelOnChange) {
this.value = value;
this._ngModelOnChange(value);
}
}
Expand Down

0 comments on commit 2f5fc79

Please sign in to comment.