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 813fb60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/datatable/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ export const TableBody = React.memo(
};

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

Expand Down

0 comments on commit 813fb60

Please sign in to comment.