We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f22d367 + 87c6f6e commit 81e9c9dCopy full SHA for 81e9c9d
projects/igniteui-angular/src/lib/calendar/calendar.component.ts
@@ -638,13 +638,13 @@ export class IgxCalendarComponent extends IgxMonthPickerBaseDirective implements
638
this.activeViewIdx = activeViewIdx;
639
requestAnimationFrame(() => {
640
this.monthsView.date = args;
641
- this.focusMonth(event.target);
+ this.focusMonth();
642
});
643
}
644
645
- private focusMonth(target: HTMLElement) {
+ private focusMonth() {
646
const month = this.monthsView.monthsRef.find((e) =>
647
- e.index === parseInt(target.parentElement.attributes['data-month'].value, 10));
+ e.index === this.monthsView.date.getMonth());
648
if (month) { month.nativeElement.focus(); }
649
650
0 commit comments