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

Commit

Permalink
Merge pull request #276 from vaggelanos/fix_checkVisibility
Browse files Browse the repository at this point in the history
Bug: Fixed indication for active day when opened programatically
  • Loading branch information
45kb authored Jun 27, 2017
2 parents ab273b5 + c36980f commit 9504a0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/js/angular-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,14 @@

return false;
}
if (dateFormat) {
date = localDateTimestamp(thisInput[0].value.toString(), dateFormat);
} else {
date = new Date(thisInput[0].value.toString());
}
$scope.selectedMonth = Number($filter('date')(date, 'MM'));
$scope.selectedDay = Number($filter('date')(date, 'dd'));
$scope.selectedYear = Number($filter('date')(date, 'yyyy'));
return $scope.$eval($scope.datepickerShow);
}
, unregisterDataSetWatcher = $scope.$watch('dateSet', function dateSetWatcher(newValue) {
Expand Down

0 comments on commit 9504a0a

Please sign in to comment.