Skip to content

Commit 8b92c76

Browse files
authored
Merge pull request #9235 from IgniteUI/clear-active-node-summary
fix(kb-nav): clear active node when leaving summary section
2 parents edb2e85 + 4c5ad5e commit 8b92c76

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3255,7 +3255,8 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
32553255
((event.target === this.tbody.nativeElement && this.navigation.activeNode.row >= 0 &&
32563256
this.navigation.activeNode.row < this.dataView.length)
32573257
|| (event.target === this.theadRow.nativeElement && this.navigation.activeNode.row === -1)
3258-
|| (event.target === this.tfoot.nativeElement && this.navigation.activeNode.row === this.dataView.length)) &&
3258+
|| (event.target === this.tfoot.nativeElement.children[0] &&
3259+
this.navigation.activeNode.row === this.dataView.length)) &&
32593260
!(this.rowEditable && this.crudService.rowEditingBlocked && this.crudService.rowInEditMode)) {
32603261
this.navigation.lastActiveNode = this.navigation.activeNode;
32613262
this.navigation.activeNode = {} as IActiveNode;

projects/igniteui-angular/src/lib/grids/grid-navigation.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ export class IgxGridNavigationService {
529529
this.grid.getNextCell(this.activeNode.row, this.activeNode.column, col => col.editable);
530530
if (!this.grid.crudService.rowInEditMode && this.isActiveNode(next.rowIndex, next.visibleColumnIndex)) {
531531
this.grid.crudService.endEdit(true, event);
532+
this.grid.tbody.nativeElement.focus();
532533
return;
533534
}
534535
event.preventDefault();

0 commit comments

Comments
 (0)