Skip to content

Commit

Permalink
Fix #4993: Column missing headerClassName (#4995)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Oct 1, 2023
1 parent b69046b commit 106452e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/lib/datatable/HeaderCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { SortAltIcon } from '../icons/sortalt';
import { SortAmountDownIcon } from '../icons/sortamountdown';
import { SortAmountUpAltIcon } from '../icons/sortamountupalt';
import { Tooltip } from '../tooltip/Tooltip';
import { DomHandler, IconUtils, mergeProps, ObjectUtils } from '../utils/Utils';
import { DomHandler, IconUtils, ObjectUtils, classNames, mergeProps } from '../utils/Utils';
import { ColumnFilter } from './ColumnFilter';
import { HeaderCheckbox } from './HeaderCheckbox';

Expand Down Expand Up @@ -362,14 +362,15 @@ export const HeaderCell = React.memo((props) => {
const rowSpan = getColumnProp('rowSpan');
const ariaSort = getAriaSort(sortMeta);
const headerTooltip = getColumnProp('headerTooltip');
const headerClassName = getColumnProp('headerClassName');
const hasTooltip = ObjectUtils.isNotEmpty(headerTooltip);
const headerTooltipOptions = getColumnProp('headerTooltipOptions');

const resizer = createResizer();
const header = createHeader(sortMeta);
const headerCellProps = mergeProps(
{
className: cx('headerCell', { headerProps: props, frozen, sortMeta, align, _isSortableDisabled, getColumnProp }),
className: classNames(headerClassName, cx('headerCell', { headerProps: props, frozen, sortMeta, align, _isSortableDisabled, getColumnProp })),
style,
role: 'columnheader',
onClick: (e) => onClick(e),
Expand Down

0 comments on commit 106452e

Please sign in to comment.