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

Commit 88439c5

Browse files
committed
fixing toggling and show
1 parent e3201dd commit 88439c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/js/angular-datepicker.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,18 @@
268268
}
269269
}
270270
, checkToggle = function checkToggle() {
271+
if (!$scope.datepickerToggle) {
272+
273+
return true;
274+
}
271275

272276
return $scope.$eval($scope.datepickerToggle);
273277
}
274278
, checkVisibility = function checkVisibility() {
279+
if (!$scope.datepickerShow) {
275280

281+
return false;
282+
}
276283
return $scope.$eval($scope.datepickerShow);
277284
}
278285
, setDaysInMonth = function setDaysInMonth(month, year) {

0 commit comments

Comments
 (0)