diff --git a/src/datepicker/datepicker.js b/src/datepicker/datepicker.js index 41932d450b..48f0bc4ef4 100644 --- a/src/datepicker/datepicker.js +++ b/src/datepicker/datepicker.js @@ -217,9 +217,7 @@ angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootst ngModelCtrl = ngModelCtrl_; ngModelOptions = ngModelCtrl_.$options || datepickerConfig.ngModelOptions; - if (ngModelCtrl.$modelValue) { - this.activeDate = ngModelCtrl.$modelValue; - } + this.activeDate = ngModelCtrl.$modelValue || new Date(); ngModelCtrl.$render = function() { self.render();