Skip to content

Commit 13817a4

Browse files
committed
chore(*): reset active date when the view is changed
1 parent 9305aad commit 13817a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

projects/igniteui-angular/src/lib/calendar/calendar.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,7 @@ export class IgxCalendarComponent extends IgxMonthPickerBaseDirective implements
772772
public viewRendered(event) {
773773
if (event.fromState !== 'void') {
774774
this.activeViewChanged.emit(this.activeView);
775+
if (this.activeView === 0) { this.resetActiveDate(); }
775776
}
776777
}
777778

0 commit comments

Comments
 (0)