Skip to content

Commit

Permalink
Fix #5342: Checkbox selection prevent onRowClick
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Nov 18, 2023
1 parent 8842281 commit 6909547
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/lib/datatable/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,12 @@ export const TableBody = React.memo(
};

const onRowClick = (event) => {
if (allowCellSelection() || !allowSelection(event) || event.defaultPrevented) {
if (allowCellSelection() || !allowSelection(event) || event.defaultPrevented || event.originalEvent.defaultPrevented) {
return;
}

console.log('OnClick');

props.onRowClick && props.onRowClick(event);

if (allowRowSelection()) {
Expand Down

0 comments on commit 6909547

Please sign in to comment.