Skip to content

Commit

Permalink
fix(table): sortable only header cell
Browse files Browse the repository at this point in the history
  • Loading branch information
trigoporres committed Oct 29, 2024
1 parent 47d6862 commit 5e02e17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/table/src/core/HeaderCell/HeaderCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ export const HeaderCell: React.FC<HeaderCellProps> = ({
return (
<StyledHeaderCell
$width={width}
$horAlign={colDef?.align || (colDef.preset === 'number' ? 'right' : null)}
$horAlign={colDef?.align}
$offsetX={offsetX}
$density={density}
title={title}
onClick={
colDef.sortable
colDef.sortable && !filter
? () => {
if (onSort) {
onSort(colDef);
Expand Down

0 comments on commit 5e02e17

Please sign in to comment.