Skip to content

Commit

Permalink
feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Jan 21, 2022
1 parent a25a91e commit e1d4eda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export const useGridSelection = (
gridClasses.cell,
);
const field = cellClicked?.getAttribute('data-field');
if (field === '__check__') {
if (field === GRID_CHECKBOX_SELECTION_COL_DEF.field) {
// click on checkbox should not trigger row selection
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ describe('<DataGrid /> - Selection', () => {
expect(getRow(0).querySelector('input')).to.have.property('checked', false);
});

it('should set focus ont the cell when clicking the checkbox', () => {
it('should set focus on the cell when clicking the checkbox', () => {
render(<TestDataGridSelection checkboxSelection />);
expect(getActiveCell()).to.equal(null);

Expand Down

0 comments on commit e1d4eda

Please sign in to comment.