Skip to content

Commit c07aa86

Browse files
committed
chore(*): fix failing tests
1 parent 9de7c18 commit c07aa86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/igniteui-angular/src/lib/grids/cell.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT
10361036

10371037
if (this.selectionService.primaryButton) {
10381038
const currentActive = this.selectionService.activeElement;
1039-
if (this.cellSelectionMode === GridSelectionMode.single && (event as any).ctrlKey && this.selected) {
1039+
if (this.cellSelectionMode === GridSelectionMode.single && (event as any)?.ctrlKey && this.selected) {
10401040
this.selectionService.activeElement = null;
10411041
shouldEmitSelection = true;
10421042
} else {
@@ -1073,7 +1073,7 @@ export class IgxGridCellComponent implements OnInit, OnChanges, OnDestroy, CellT
10731073
}
10741074
this.selectionService.primaryButton = true;
10751075
if (this.cellSelectionMode === GridSelectionMode.multiple && this.selectionService.activeElement) {
1076-
if (this.selectionService.isInMap(this.selectionService.activeElement) && (event as any).ctrlKey) {
1076+
if (this.selectionService.isInMap(this.selectionService.activeElement) && (event as any)?.ctrlKey) {
10771077
this.selectionService.remove(this.selectionService.activeElement);
10781078
shouldEmitSelection = true;
10791079
} else {

0 commit comments

Comments
 (0)