Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table defaultSortOrder is invalid when the column is not the last level #30791

Open
1 task done
sengmitnick opened this issue May 31, 2021 · 0 comments
Open
1 task done
Labels

Comments

@sengmitnick
Copy link

sengmitnick commented May 31, 2021

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Open the replay link to see

What is expected?

Table defaultSortOrder style is valid

What is actually happening?

Table defaultSortOrder style is invalid

Environment Info
antd 4.16.1
React 17.0.2
System macOS 11.2.1
Browser Google Chrome 版本 90.0.4430.212(正式版本) (arm64)

我基于Table做了个ProTable

因为筛选功能放到了表头末级,使用排序列永远不会再末级,就导致了这个问题。

I made a ProTable based on Table

This problem is caused because the filter function is placed at the end of the table header, and the sorting column will never be at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant