diff --git a/src/app/components/calendar/calendar.ts b/src/app/components/calendar/calendar.ts index 851948918a6..df8531e4e33 100755 --- a/src/app/components/calendar/calendar.ts +++ b/src/app/components/calendar/calendar.ts @@ -912,11 +912,15 @@ export class Calendar implements OnInit,OnDestroy,ControlValueAccessor { switchToMonthView(event) { this.currentView = 'month'; + this.cd.detectChanges(); + this.alignOverlay(); event.preventDefault(); } switchToYearView(event) { this.currentView = 'year'; + this.cd.detectChanges(); + this.alignOverlay(); event.preventDefault(); }