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

In Safari, DatePicker moves the page when selecting a date, and the document example can be reproduced #4323

Closed
1 task
elvisqi opened this issue Jul 5, 2021 · 3 comments
Labels

Comments

@elvisqi
Copy link

elvisqi commented Jul 5, 2021

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

Version

2.2.0-rc.1

Environment

macOs 11.4, safari 14.1.1

Reproduction link

https://2x.antdv.com/components/date-picker-cn#components-date-picker-demo-start-end

Steps to reproduce

1、打开官方文档地址:https://2x.antdv.com/components/date-picker-cn
2、将第一个日期选择框移动到页面顶部
3、点击 请选择日期,光标foucs到弹出选择日期的位置,导致页面位置发生了变化

What is expected?

不需要foucs,设置了:autofocus="false" 也无效

What is actually happening?

光标foucs,导致页面位置发生了变化

safari-datepicker.foucs.mov
@github-actions github-actions bot changed the title Safari 下 DatePicker 在选择日期时移动页面,文档示例可复现 In Safari, DatePicker moves the page when selecting a date, and the document example can be reproduced Jul 5, 2021
@tangjinzhou
Copy link
Member

顶部广告突然展示的问题吧

@elvisqi
Copy link
Author

elvisqi commented Jul 6, 2021

仔细看下最后的画面,整个页面跳到了top:0 的位置
我分析问题应该是由于只有选择日期的时候,出现的input中有foucs,导致页面被定位到了中间。

再录个屏,从顶部开始

datepicker.mov

@github-actions
Copy link

github-actions bot commented Jul 7, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants