mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
✅ fix invalid title in div
This commit is contained in:
parent
9c777231e3
commit
860809f173
@ -840,6 +840,7 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
const sortTitleString = (sortButton && typeof sortTitle === 'string') ? sortTitle : undefined;
|
||||||
return {
|
return {
|
||||||
...column,
|
...column,
|
||||||
className: classNames(column.className, {
|
className: classNames(column.className, {
|
||||||
@ -851,7 +852,7 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
|
|||||||
title: [
|
title: [
|
||||||
<div
|
<div
|
||||||
key="title"
|
key="title"
|
||||||
title={sortButton ? sortTitle : undefined}
|
title={sortTitleString}
|
||||||
className={sortButton ? `${prefixCls}-column-sorters` : undefined}
|
className={sortButton ? `${prefixCls}-column-sorters` : undefined}
|
||||||
onClick={() => this.toggleSortOrder(column)}
|
onClick={() => this.toggleSortOrder(column)}
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user