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 组件排序功能会自动触发 pagination 的 onChange 事件 #19369

Closed
1 task
DelBlank opened this issue Oct 23, 2019 · 4 comments · Fixed by #20507
Closed
1 task

Table 组件排序功能会自动触发 pagination 的 onChange 事件 #19369

DelBlank opened this issue Oct 23, 2019 · 4 comments · Fixed by #20507

Comments

@DelBlank
Copy link

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

Reproduction link

https://codepen.io/DelBlank/pen/abbJJay?&editable=true&editors=001

Steps to reproduce

对 Table 组件进行筛选或排序,会自动触发 pagination 的 onChange 事件

What is expected?

对 Table 组件进行筛选或排序,不会自动触发 pagination 的 onChange 事件

What is actually happening?

对 Table 组件进行筛选或排序,会自动触发 pagination 的 onChange 事件

Environment Info
antd 3.24.2
React 16
System windows10
Browser chrome 77.0.3865.90 (正式版本) (64 位)
@yoyo837
Copy link
Contributor

yoyo837 commented Oct 23, 2019

可能是因为排序需要重置分页到第一页

@afc163
Copy link
Member

afc163 commented Oct 23, 2019

是的,具体见 #16978

@afc163 afc163 closed this as completed Oct 23, 2019
@DelBlank
Copy link
Author

排序后不一定要重置到第一页啊,这种行为应该交给开发者去控制,我记得之前的版本是开发者自己控制的

@DelBlank
Copy link
Author

@afc163

afc163 added a commit that referenced this issue Dec 27, 2019
afc163 added a commit that referenced this issue Dec 28, 2019
zombieJ pushed a commit that referenced this issue Dec 28, 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

Successfully merging a pull request may close this issue.

4 participants