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

TimePicker.RangePicker需要点分别点start的确定和end的确定 #48820

Closed
zxq08 opened this issue May 8, 2024 · 4 comments
Closed

TimePicker.RangePicker需要点分别点start的确定和end的确定 #48820

zxq08 opened this issue May 8, 2024 · 4 comments

Comments

@zxq08
Copy link
Contributor

zxq08 commented May 8, 2024

Reproduction link

https://ant-design.antgroup.com/components/time-picker-cn#time-picker-demo-range-picker

Steps to reproduce

选择开始时间后直接选择结束时间,然后点击确定,不会保存选中结果

What is expected?

按重现步骤操作后应该正确选中结果,参考5.12.0及以前版本

What is actually happening?

不会保存选中结果,与5.12.0及以前版本表现不一致,且与日期选择的范围选择变现不一致

Environment Info
antd 5.17.0
React 18.0.0
System MacOS 13.6.1 (22G313)
Browser 124.0.6367.60(正式版本) (x86_64)
@MadCcc
Copy link
Member

MadCcc commented May 8, 2024

以前的是 bug,如果不需要点 确认 可以使用 needConfirm={false}

@MadCcc MadCcc closed this as completed May 8, 2024
@zxq08
Copy link
Contributor Author

zxq08 commented May 8, 2024

以前的是 bug,如果不需要点 确认 可以使用 needConfirm={false}

我不太了解你们怎么定性为bug的哈,我这边使用antd几年了,从4.x开始就是这样的,很多用户都已经习惯了这样的用法😭 这样断崖式的更新不太合理吧。
另外needConfirm={false}时,选择开始、结束后失焦,下拉框会弹回开始时间,这也是预期内的吗?😓
而4.x以及5.13以前不会时,可以参考4.x的demo
https://4x-ant-design.antgroup.com/components/time-picker-cn/#components-time-picker-demo-range-picker

@MadCcc MadCcc reopened this May 8, 2024
@MadCcc
Copy link
Member

MadCcc commented May 8, 2024

那确实是 bug,Duplicate of #48623 ,Trace 这个

@MadCcc MadCcc closed this as completed May 8, 2024
@zxq08
Copy link
Contributor Author

zxq08 commented May 8, 2024

那确实是 bug,Duplicate of #48623 ,Trace 这个

好的 感谢回复!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants