File tree 1 file changed +2
-2
lines changed
projects/igniteui-angular/src/lib/calendar/days-view
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ export class IgxDaysViewComponent extends IgxCalendarBase implements DoCheck {
260
260
261
261
// focus item in current month
262
262
for ( let i = index ; i - 7 > - 1 ; i -= 7 ) {
263
- day = prevView ? node : dates [ index - 7 ] ;
263
+ day = prevView ? node : dates [ i - 7 ] ;
264
264
if ( ! day . isDisabled && ! day . isHidden && ! day . isOutOfRange && day . isCurrentMonth ) {
265
265
day . nativeElement . focus ( ) ;
266
266
break ;
@@ -351,7 +351,7 @@ export class IgxDaysViewComponent extends IgxCalendarBase implements DoCheck {
351
351
if ( ! node ) { return ; }
352
352
353
353
for ( let i = index ; i > 0 ; i -- ) {
354
- day = prevView ? node : dates [ index - 1 ] ;
354
+ day = prevView ? node : dates [ i - 1 ] ;
355
355
if ( ! day . isDisabled && ! day . isHidden && ! day . isOutOfRange && day . isCurrentMonth ) {
356
356
day . nativeElement . focus ( ) ;
357
357
break ;
You can’t perform that action at this time.
0 commit comments