Skip to content

Commit 2267e03

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Clear active row indexes when selection is cleared.
1 parent 0ae58e0 commit 2267e03

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2926,6 +2926,7 @@ export abstract class IgxGridBaseDirective implements GridType,
29262926
this._cellSelectionMode = selectionMode;
29272927
// if (this.gridAPI.grid) {
29282928
this.selectionService.clear(true);
2929+
this._activeRowIndexes = null;
29292930
this.notifyChanges();
29302931
// }
29312932
}
@@ -4120,6 +4121,7 @@ export abstract class IgxGridBaseDirective implements GridType,
41204121
.pipe(takeUntil(this.destroy$))
41214122
.subscribe(() => {
41224123
this.selectionService.clear(true);
4124+
this._activeRowIndexes = null;
41234125
this.crudService.endEdit(false);
41244126
this.pipeTrigger++;
41254127
this.navigateTo(0);
@@ -4130,6 +4132,7 @@ export abstract class IgxGridBaseDirective implements GridType,
41304132
.pipe(takeUntil(this.destroy$))
41314133
.subscribe(() => {
41324134
this.selectionService.clear(true);
4135+
this._activeRowIndexes = null;
41334136
this.page = 0;
41344137
this.crudService.endEdit(false);
41354138
this.notifyChanges();
@@ -5855,6 +5858,7 @@ export abstract class IgxGridBaseDirective implements GridType,
58555858
*/
58565859
public clearCellSelection(): void {
58575860
this.selectionService.clear(true);
5861+
this._activeRowIndexes = null;
58585862
this.notifyChanges();
58595863
}
58605864

@@ -8114,6 +8118,7 @@ export abstract class IgxGridBaseDirective implements GridType,
81148118
private clearActiveNode() {
81158119
this.navigation.lastActiveNode = this.navigation.activeNode;
81168120
this.navigation.activeNode = {} as IActiveNode;
8121+
this._activeRowIndexes = null;
81178122
this.notifyChanges();
81188123
}
81198124

0 commit comments

Comments
 (0)