Skip to content

Commit 28a7470

Browse files
KillusionsMarkColeman1
authored andcommitted
fix: fix keyboard interaction for cell selection mode
1 parent d3ddab3 commit 28a7470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/swimlane/ngx-datatable/src/lib/components/body/body.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ export class DataTableBodyComponent<TRow extends Row = any> implements OnInit, O
962962
}
963963
if (!model.cellElement || !isCellSelection) {
964964
this.focusRow(model.rowElement, key);
965-
} else if (isCellSelection && model.cellIndex) {
965+
} else if (isCellSelection && model.cellIndex !== undefined) {
966966
this.focusCell(model.cellElement, model.rowElement, key, model.cellIndex);
967967
}
968968
}

0 commit comments

Comments
 (0)