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

Does not automatically scroll to the top when change page size on the non-first page #19464

Closed
1 task
yoyo837 opened this issue Oct 28, 2019 · 2 comments · Fixed by #19465
Closed
1 task

Does not automatically scroll to the top when change page size on the non-first page #19464

yoyo837 opened this issue Oct 28, 2019 · 2 comments · Fixed by #19465
Assignees

Comments

@yoyo837
Copy link
Contributor

yoyo837 commented Oct 28, 2019

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

Reproduction link

Edit on CodeSandbox
ref: #18726

Steps to reproduce

1.打开重现链接;
2.切换到第二页, 手动往下滚动部分距离;
3.更换每页大小;

What is expected?

与切换页码相同,更换pageSize时也能自动滚动到表格顶部

What is actually happening?

更换pageSize时不能自动滚动到表格顶部

Environment Info
antd 3.24.3
React latest
System MacOS latest
Browser Chrome latest
@yoyo837
Copy link
Contributor Author

yoyo837 commented Oct 28, 2019

ping @MrHeer

@yoyo837 yoyo837 changed the title Does not automatically scroll to the top when change page size on the second page Does not automatically scroll to the top when change page size on the non-first page Oct 28, 2019
@MrHeer
Copy link
Contributor

MrHeer commented Oct 28, 2019

first page does not work also, because I never do it. Need add it?

MrHeer added a commit to MrHeer/ant-design that referenced this issue Oct 28, 2019
fix table does not automatically scroll to the top when change page size
close ant-design#19464
shaodahong added a commit that referenced this issue Nov 2, 2019
…size (#19465)

* 🐛 (Table): fix scrollToFirstRow

fix table does not automatically scroll to the top when change page size
close #19464

* ✅ (Table): add test case for scrollToFirstRow

* 👌 (Table): change Trigger to .ant-select

Co-Authored-By: 骗你是小猫咪 <darryshaw@gmail.com>
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.

3 participants