We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee7bfc1 commit 11266dcCopy full SHA for 11266dc
src/Body/MeasureRow.tsx
@@ -36,12 +36,16 @@ const MeasureRow: React.FC<MeasureRowProps> = ({
36
>
37
{columnsKey.map(columnKey => {
38
const column = columns.find(col => col.key === columnKey);
39
+ const rawTitle = column?.title;
40
+ const titleForMeasure = React.isValidElement(rawTitle)
41
+ ? React.cloneElement(rawTitle, { ref: null })
42
+ : rawTitle;
43
return (
44
<MeasureCell
45
key={columnKey}
46
columnKey={columnKey}
47
onColumnResize={onColumnResize}
- title={column?.title}
48
+ title={titleForMeasure}
49
/>
50
);
51
})}
0 commit comments