Skip to content

Commit

Permalink
Merge branch 'master' into 0.26
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlewis92 committed Aug 5, 2018
2 parents aa82729 + 6093890 commit e3d6652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/demo-modules/kitchen-sink/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ export class DemoComponent {

dayClicked({ date, events }: { date: Date; events: CalendarEvent[] }): void {
if (isSameMonth(date, this.viewDate)) {
this.viewDate = date;
if (
(isSameDay(this.viewDate, date) && this.activeDayIsOpen === true) ||
events.length === 0
) {
this.activeDayIsOpen = false;
} else {
this.activeDayIsOpen = true;
this.viewDate = date;
}
}
}
Expand Down

0 comments on commit e3d6652

Please sign in to comment.