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.
1 parent f22d367 commit 87c6f6eCopy full SHA for 87c6f6e
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