Skip to content

Commit

Permalink
no overwrite expandIconColumnIndex if set (#21315)
Browse files Browse the repository at this point in the history
  • Loading branch information
fomenyesu committed Feb 10, 2020
1 parent cf4808b commit 06de637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/table/Table.tsx
Expand Up @@ -336,8 +336,8 @@ function Table<RecordType extends object = any>(props: TableProps<RecordType>) {
mergedExpandable.expandIcon =
mergedExpandable.expandIcon || expandIcon || renderExpandIcon(tableLocale!);

// Adjust expand icon index
if (expandType === 'nest') {
// Adjust expand icon index, no overwrite expandIconColumnIndex if set.
if (expandType === 'nest' && !('expandIconColumnIndex' in mergedExpandable)) {
mergedExpandable.expandIconColumnIndex = rowSelection ? 1 : 0;
}

Expand Down

0 comments on commit 06de637

Please sign in to comment.