Skip to content

Commit

Permalink
fix(table): Delete tooltip filter components
Browse files Browse the repository at this point in the history
  • Loading branch information
santiago.trigo committed Oct 18, 2024
1 parent 5249397 commit 8f0af8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/table/src/core/HeaderCell/HeaderCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ interface HeaderCellProps {
width: React.CSSProperties['width'];
offsetX: number;
children: React.ReactNode;
title?: string;
}

export const HeaderCell: React.FC<HeaderCellProps> = ({
colDef,
width,
offsetX,
children,
title,
}) => {
const { density, onSort, resizableColumns, showFilters } = React.useContext(TableContext);

Expand All @@ -28,7 +30,7 @@ export const HeaderCell: React.FC<HeaderCellProps> = ({
$horAlign={colDef?.align || (colDef.preset === 'number' ? 'right' : null)}
$offsetX={offsetX}
$density={density}
title={colDef.headerName}
title={title}
onClick={
colDef.sortable
? () => {
Expand Down
1 change: 1 addition & 0 deletions packages/table/src/core/TableHead/TableHead.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const TableHead: React.FC<TableHeadProps> = ({
colDef={colDef}
width={virtualColumn && `${virtualColumn.size}px`}
offsetX={virtualColumn && virtualColumn.start}
title={colDef.headerName}
>
{colDef?.headerRenderer ? (
colDef.headerRenderer({ colDef })
Expand Down

0 comments on commit 8f0af8c

Please sign in to comment.