Skip to content

Commit 246ed20

Browse files
authored
Fix #5164: Datatable frozen column and filter row (#5182)
1 parent 380806e commit 246ed20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/lib/datatable/DataTableBase.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ const classes = {
405405
}),
406406
headerCheckboxIcon: 'p-checkbox-icon',
407407
headerContent: 'p-column-header-content',
408-
headerCell: ({ headerProps: props, frozen, sortMeta, align, _isSortableDisabled, column, getColumnProp }) =>
408+
headerCell: ({ headerProps: props, frozen, sortMeta, align, _isSortableDisabled, getColumnProp }) =>
409409
ObjectUtils.isEmpty(props)
410410
? classNames('p-filter-column', { 'p-frozen-column': frozen })
411411
: classNames({

components/lib/datatable/TableHeader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export const TableHeader = React.memo((props) => {
213213
const headerCellProps = mergeProps(
214214
{
215215
style: colStyle,
216-
className: classNames(filterHeaderClassName, className, cx('headerCells', { frozen, column: col })),
216+
className: classNames(filterHeaderClassName, className, cx('headerCell', { frozen, column: col })),
217217
key: colKey
218218
},
219219
getColumnPTOptions(col, 'root'),

0 commit comments

Comments
 (0)