From 40d6f424052fcabdb78147fc4c284bdf6de3da4a Mon Sep 17 00:00:00 2001 From: melloware Date: Fri, 27 Oct 2023 16:18:20 -0400 Subject: [PATCH] Fix #5164: Datatable frozen column and filter row --- components/lib/datatable/DataTableBase.js | 2 +- components/lib/datatable/TableHeader.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/datatable/DataTableBase.js b/components/lib/datatable/DataTableBase.js index a2d9ad9be7..4f8b00b0e8 100644 --- a/components/lib/datatable/DataTableBase.js +++ b/components/lib/datatable/DataTableBase.js @@ -405,7 +405,7 @@ const classes = { }), headerCheckboxIcon: 'p-checkbox-icon', headerContent: 'p-column-header-content', - headerCell: ({ headerProps: props, frozen, sortMeta, align, _isSortableDisabled, column, getColumnProp }) => + headerCell: ({ headerProps: props, frozen, sortMeta, align, _isSortableDisabled, getColumnProp }) => ObjectUtils.isEmpty(props) ? classNames('p-filter-column', { 'p-frozen-column': frozen }) : classNames({ diff --git a/components/lib/datatable/TableHeader.js b/components/lib/datatable/TableHeader.js index df422d568f..dfa6d5cc3f 100644 --- a/components/lib/datatable/TableHeader.js +++ b/components/lib/datatable/TableHeader.js @@ -213,7 +213,7 @@ export const TableHeader = React.memo((props) => { const headerCellProps = mergeProps( { style: colStyle, - className: classNames(filterHeaderClassName, className, cx('headerCells', { frozen, column: col })), + className: classNames(filterHeaderClassName, className, cx('headerCell', { frozen, column: col })), key: colKey }, getColumnPTOptions(col, 'root'),