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 sorting always "ascend" #17791

Closed
1 task done
SimonyanGrno opened this issue Jul 22, 2019 · 1 comment
Closed
1 task done

Table sorting always "ascend" #17791

SimonyanGrno opened this issue Jul 22, 2019 · 1 comment
Assignees

Comments

@SimonyanGrno
Copy link

SimonyanGrno commented Jul 22, 2019

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Table sorting always ascend

What is expected?

sorter.field must be "ascend", "descend", undefined

What is actually happening?

In handleTableChange sorter.field always "ascend" when function calls this.setState. If comment this.setState all works fine

Environment Info
antd 3.20.5
React React
System Ubuntu 18.04.2 LTS
Browser Version 75.0.3770.142 (Official Build) (64-bit)
@afc163
Copy link
Member

afc163 commented Jul 22, 2019

https://codesandbox.io/s/elegant-field-idtge

or

https://codesandbox.io/s/great-haibt-d3d0l


#12737 (comment)

@afc163 afc163 closed this as completed Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants