mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +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>
|
||||
);
|
||||
}
|
||||
const sortTitleString = (sortButton && typeof sortTitle === 'string') ? sortTitle : undefined;
|
||||
return {
|
||||
...column,
|
||||
className: classNames(column.className, {
|
||||
@ -851,7 +852,7 @@ export default class Table<T> extends React.Component<TableProps<T>, TableState<
|
||||
title: [
|
||||
<div
|
||||
key="title"
|
||||
title={sortButton ? sortTitle : undefined}
|
||||
title={sortTitleString}
|
||||
className={sortButton ? `${prefixCls}-column-sorters` : undefined}
|
||||
onClick={() => this.toggleSortOrder(column)}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user