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

分页器点击“下一页”箭头以后按下回车会跳两页 #7360

Closed
1 task
Zyh20000923 opened this issue Feb 20, 2024 · 6 comments
Closed
1 task
Labels

Comments

@Zyh20000923
Copy link

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

Version

4.1.0

Environment

win11

Reproduction link

https://next.antdv.com/components/pagination-cn/#Pagination-

Steps to reproduce

官网示例

What is expected?

分页器点击“下一页”箭头以后按下回车会跳两页,上一页也同样情况。
请问这是故意的还是一个bug

What is actually happening?

分页器点击“下一页”箭头以后按下回车会跳两页,上一页也同样情况。
请问这是故意的还是一个bug

@selicens
Copy link
Member

没有发现你说的这个问题呢

@wsxe9988
Copy link

能试出来,和ant-design的效果是一致的

@selicens
Copy link
Member

能试出来,和ant-design的效果是一致的

哦,点下一页和按回车两个操作,这两个为啥会关联到一起,好奇怪

@selicens
Copy link
Member

当点击下一页后按下enter键,预期是出现页数加一,但实际按下enter键除了会触发键盘事件还会默认触发元素的点击事件,所以会出现页数加二的情况,反之点击上一页然后按下enter键也是如此,页数会减二而不是预期的减一

@selicens selicens removed the bug label Feb 21, 2024
@Zyh20000923
Copy link
Author

ant3也是这样

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

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

3 participants