Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit e822bba

Browse files
author
Sam Jenkins
committed
put code for disabled dates back in
1 parent af259ba commit e822bba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/angular-datepicker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,8 @@
454454

455455
$scope.setDatepickerDay = function setDatepickeDay(day) {
456456

457-
if ($scope.isSelectableMaxDate($scope.year + '/' + $scope.monthNumber + '/' + day)
457+
if ($scope.isSelectableDate($scope.monthNumber, $scope.year, day)
458+
&& $scope.isSelectableMaxDate($scope.year + '/' + $scope.monthNumber + '/' + day)
458459
&& $scope.isSelectableMinDate($scope.year + '/' + $scope.monthNumber + '/' + day)) {
459460
$scope.day = Number(day);
460461
$scope.setInputValue();

0 commit comments

Comments
 (0)