Skip to content

RangePicker组件在onCalendarChange方法中调用form.setFieldsValue会导致时间不可选择 #49470

@FlyAboveGrass

Description

@FlyAboveGrass

Reproduction link

[Edit on StackBlitz

Steps to reproduce

  1. 正常选择开始结束时间,点确定
    2.重新打开时间选择,选择时间,发现不可以选择。选择什么时间都会跳回之前的选择时间

What is expected?

RangePicker 可以正常选择

What is actually happening?

RangePicker 不可以选择

Environment Info
antd 5.18.2
React 18
System macos
Browser Edge

在5.13.2及之前的版本可以正常使用。应该是5.14.0重构之后出现的问题。
form.setFieldValue 这个方法可以正常使用。

之前已经被标记为 bug,issue 被误删了,重新提一个。

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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions