Skip to content

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

@elvisqi

Description

@elvisqi
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions