Skip to content

[email protected]中 Calendar 内渲染 datepicker 后无法切换月份年份 #38731

Closed
react-component/picker
#535
@udbbbn

Description

@udbbbn

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. DatePicker 选择任意一个日期
  2. 再次点击 DatePicker 顶部切换年份月份 切换失败

What is expected?

能正确切换月份

What is actually happening?

组件重复渲染导致切换失败。
似乎是Calendar组件重复渲染, 即使是给了 Key 也不解决问题。

Environment Info
antd 4.18.1
React 17.0.1
System win10家庭版 21H2
Browser Chrome 版本 107.0.5304.107(正式版本) (64 位)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Inactivehelp wantedThe suggestion or request has been accepted, we need you to help us by sending a pull request.🐛 BugAnt Design Team had proved that this is a bug.👷🏻‍♂️ Someone working on it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions