ng2-ui / datetime-picker

Angular2 DateTime Picker
https://ng2-ui.github.io/#/datetime-picker
MIT License
121 stars 62 forks source link

min or max date missing causes "Cannot read property 'getTime' of undefined" #82

Closed msaccone closed 7 years ago

msaccone commented 7 years ago

At datetime-picker.component.js

DateTimePickerComponent.prototype.isDateDisabled = function (date) { var dateInTime = date.getTime(); var minDateInTime = this.minDate.getTime(); var maxDateInTime = this.maxDate.getTime();

allenhwkim commented 7 years ago

Fix is relased with 0.11.1, plz verify the fix

msaccone commented 7 years ago

fixed!

allenhwkim commented 7 years ago

Thanks for confirming :)