diff --git a/src/datepickerPopup/popup.js b/src/datepickerPopup/popup.js index 318a949440..aac83d7d0a 100644 --- a/src/datepickerPopup/popup.js +++ b/src/datepickerPopup/popup.js @@ -200,7 +200,7 @@ function($scope, $element, $attrs, $compile, $log, $parse, $window, $document, $ var dates = {}; angular.forEach(['minDate', 'maxDate'], function(key) { - if ($scope.datepickerOptions[key] === null) { + if (!$scope.datepickerOptions[key]) { dates[key] = null; } else if (angular.isDate($scope.datepickerOptions[key])) { dates[key] = dateParser.fromTimezone(new Date($scope.datepickerOptions[key]), timezone);