ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

[Bug Report] `defaultSortOrder` does not take effect in parent table head

Open meteorlxy opened this issue 3 years ago • 0 comments
trafficstars

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.3.0-beta.2

Environment

[email protected]

Reproduction link

https://github.com/vueComponent/ant-design-vue/blob/fa53e89e5104f2e5caebc0af5cf0d3d9330301d2/components/table/hooks/useSorter.tsx#L77-L106

Steps to reproduce

Set defaultSortOrder to a column with children.

What is expected?

The defaultSortOrder should also be handled in the if ((column as ColumnGroupType<RecordType>).children) branch

What is actually happening?

The defaultSortOrder is only handled in the else if (column.sorter) branch

meteorlxy avatar Aug 12 '22 09:08 meteorlxy