ant-design / ant-design

An enterprise-class UI design language and React UI library
https://ant.design
MIT License
90.42k stars 46.41k forks source link

Date picker dates reset after focus out #48693

Closed alisher-aituarov closed 2 days ago

alisher-aituarov commented 2 weeks ago

Reproduction link

https://ant.design/components/date-picker

Steps to reproduce

What is expected?

expected to see both dates to be persisted ( should be 2024-01-02 - 2024-02-03 )

What is actually happening?

the only date persisted is the one that changed last (if changed end date last then 2024-01-01 - 2024-02-03 )

Environment Info
antd 5.16.5
React 18.2.0
System macos
Browser chrome Version 124.0.6367.60
alisher-aituarov commented 2 weeks ago

@jhsu @edd @grossbart @yang

mleister97 commented 2 weeks ago

I believe this issue is related to mine as well: When selecting a value, it flickers afterward when moving the mouse, causing the values to jump around. This wasn't the case before.

Which version can I downgrade to in order to avoid this issue? It seems that this was only recently introduced (I upgraded antd from 5.13.3 to 5.16.5).

https://github.com/ant-design/ant-design/assets/16700053/16b96597-c0c7-4e68-8c2a-3538de43ba26

github-actions[bot] commented 1 week ago

Hello @alisher-aituarov. Please provide a online reproduction by forking codesandbox of antd@5.x or antd@4.x, or provide a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 3 days.

你好 @alisher-aituarov,我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 antd@5.xantd@4.x 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

什么是最小化重现,为什么这是必需的?

alisher-aituarov commented 6 days ago

@MadCcc please just follow the link I have already attached and follow the instructions please meaning this bug is present in your docs as well as in my codebase