File tree Expand file tree Collapse file tree 2 files changed +3
-99
lines changed Expand file tree Collapse file tree 2 files changed +3
-99
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import isVisible from 'rc-util/lib/Dom/isVisible';
55import { useContext } from '@rc-component/context' ;
66import TableContext from '../context/TableContext' ;
77import type { ColumnType } from '../interface' ;
8- import { prepareMeasureTitle } from '../utils/measureUtil' ;
98
109export 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 }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments