Skip to content

Commit

Permalink
Fix #5342: Checkbox selection prevent onRowClick (#5344)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Nov 20, 2023
1 parent e578cf0 commit ecf62b7
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 (event.defaultPrevented || (event.originalEvent && event.originalEvent.defaultPrevented) || allowCellSelection() || !allowSelection(event)) {
return;
}

Expand Down

1 comment on commit ecf62b7

@vercel
Copy link

@vercel vercel bot commented on ecf62b7 Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

primereact-v9 – ./

primereact-v9-git-master-primetek.vercel.app
primereact-v9-primetek.vercel.app

Please sign in to comment.