Skip to content

Commit e1bf22a

Browse files
committed
Merge branch 'master' into startNoOfDays
2 parents 5f7549d + 62a8f0f commit e1bf22a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-material-calendar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ angular.module("materialCalendar").directive("calendarMd", ["$compile", "$parse"
292292
var match;
293293
var active = angular.copy($scope.active);
294294
if (!angular.isArray(active)) {
295-
if (angular.equals(active.getYear(), date.getYear()) && angular.equals(active.getMonth(), date.getMonth()) && angular.equals(active.getDate(), date.getDate())) {
295+
if (active && angular.equals(active.getYear(), date.getYear()) && angular.equals(active.getMonth(), date.getMonth()) && angular.equals(active.getDate(), date.getDate())) {
296296
match = true;
297297
}
298298
} else {

0 commit comments

Comments
 (0)