From 395cd6465f0406447289084e58dda066b8b29239 Mon Sep 17 00:00:00 2001 From: melloware Date: Thu, 15 Aug 2024 08:06:45 -0400 Subject: [PATCH] Fix #7050: HeaderCheckbox passthrough --- components/lib/datatable/HeaderCell.js | 4 +++- components/lib/datatable/TableHeader.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/lib/datatable/HeaderCell.js b/components/lib/datatable/HeaderCell.js index 7587b1fefb..56f384bf6e 100644 --- a/components/lib/datatable/HeaderCell.js +++ b/components/lib/datatable/HeaderCell.js @@ -304,7 +304,9 @@ export const HeaderCell = React.memo((props) => { if (props.showSelectAll && getColumnProp('selectionMode') === 'multiple' && props.filterDisplay !== 'row') { const allRowsSelected = props.allRowsSelected(props.value); - return ; + return ( + + ); } return null; diff --git a/components/lib/datatable/TableHeader.js b/components/lib/datatable/TableHeader.js index 3216aaedeb..1cf628dfdf 100644 --- a/components/lib/datatable/TableHeader.js +++ b/components/lib/datatable/TableHeader.js @@ -172,7 +172,7 @@ export const TableHeader = React.memo((props) => { if (props.showSelectAll && selectionMode === 'multiple') { const allRowsSelected = props.allRowsSelected(props.value); - return ; + return ; } return null;