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 use 'sort' and 'title' with 'span' and 'setState' in onChange callback, always "ascend" #19058

Closed
1 task
lchunxiu opened this issue Sep 29, 2019 · 6 comments
Assignees
Labels

Comments

@lchunxiu
Copy link

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

点击name表头,sorter不会切换

What is expected?

sorter在 ascend descend '' 之前切换

What is actually happening?

sorter不会切换

Environment Info
antd 3.23.4
React 3.23.4
System mac
Browser chrome 76
@ant-design-bot
Copy link
Contributor

Hello @lchunxiu, we use GitHub issues to trace bugs or discuss plans of Ant Design. So, please don't ask usage questions here. You can try to ask questions on Stack Overflow or Segment Fault, then apply tag antd and react to your question.

你好 @lchunxiu,Ant Design Issue 板块是用于 bug 反馈与需求讨论的地方。请勿询问如何使用的问题,你可以试着在 Stack Overflow 或者 Segment Fault 中提问(记得添加 antdreact 标签哦~)。

@shaodahong
Copy link
Member

@afc163
Copy link
Member

afc163 commented Sep 29, 2019

Add column key or move column out of render.

@lchunxiu
Copy link
Author

@afc163 it works,thank you!

@afc163
Copy link
Member

afc163 commented Nov 10, 2019

#19398
#19636

@xiaosu12138
Copy link

I have the same problem in v3.26.5
maybe it is better to change '(a && b && a.key && a.key === b.key)' to '(a && b getColumnKey(a)=== getColumnKey(b))' on line 66 in 'ant-design/components/table/Table.tsx'.
because key is not required

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

5 participants