From 790f02359471a7cf51ddd48d4e0628a5784851d8 Mon Sep 17 00:00:00 2001 From: melloware Date: Sat, 18 Nov 2023 16:15:59 -0500 Subject: [PATCH] Fix #5342: Checkbox selection prevent onRowClick --- components/lib/datatable/TableBody.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/datatable/TableBody.js b/components/lib/datatable/TableBody.js index 427c7c8f7e..6a9ad7e41a 100644 --- a/components/lib/datatable/TableBody.js +++ b/components/lib/datatable/TableBody.js @@ -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; }