Skip to content

Commit 95ce7b1

Browse files
committed
fix(selection): allow rowSelection to be navigable if using cellNav; allow rowSelection via the space bar(new Test)
1 parent 3d5d603 commit 95ce7b1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/features/selection/test/uiGridSelectionDirective.spec.js

+9
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,13 @@ describe('ui.grid.selection uiGridSelectionDirective', function() {
5252
expect(currentRow.enableSelection).toEqual(currentRow.entity.id % 2 === 0);
5353
}
5454
});
55+
56+
it('should add cellFocus to the row header columnDef"', function() {
57+
for (var i = 0; i < gridCtrl.grid.columns.length; i++) {
58+
var currentCol = gridCtrl.grid.columns[i];
59+
if (currentCol.name === "selectionRowHeaderCol"){
60+
expect(currentCol.colDef.allowCellFocus).toBe(true);
61+
}
62+
}
63+
});
5564
});

0 commit comments

Comments
 (0)