Skip to content

Commit d653da6

Browse files
committed
Revert "fix: duplicate unique identifiers in MeasureRow column headers (#1376)" (#1377)
1 parent 7b865c1 commit d653da6

File tree

2 files changed

+3
-99
lines changed

2 files changed

+3
-99
lines changed

src/Body/MeasureRow.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import isVisible from 'rc-util/lib/Dom/isVisible';
55
import { useContext } from '@rc-component/context';
66
import TableContext from '../context/TableContext';
77
import type { ColumnType } from '../interface';
8-
import { prepareMeasureTitle } from '../utils/measureUtil';
98

109
export interface MeasureRowProps {
1110
prefixCls: string;
@@ -37,8 +36,9 @@ export default function MeasureRow({
3736
{columnsKey.map(columnKey => {
3837
const column = columns.find(col => col.key === columnKey);
3938
const rawTitle = column?.title;
40-
const titleForMeasure = prepareMeasureTitle(rawTitle);
41-
39+
const titleForMeasure = React.isValidElement<React.RefAttributes<any>>(rawTitle)
40+
? React.cloneElement(rawTitle, { ref: null })
41+
: rawTitle;
4242
return (
4343
<MeasureCell
4444
prefixCls={prefixCls}

src/utils/measureUtil.ts

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)