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

RangePicker组件,手动清除开始日期,然后再选中某个开始日期,选中无效 #26024

Closed
1 task
Gloria-Dee opened this issue Aug 5, 2020 · 1 comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. 👷🏻‍♂️ Someone working on it

Comments

@Gloria-Dee
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://ant.design/components/date-picker-cn/#API

Steps to reproduce

1、选中开始日期
2、手动清除input框中的日期
3、再次选某个日期作为开始日期,无法选中

What is expected?

期望在手动清空日期的input框时能触发相应的方法,能够监听到input框中值的变化,以方便重新设置开始日期,以及重新计算失效日期范围

What is actually happening?

目前简单暴力的解决方法是通过设置inputReadOnly,不让用户手动请空。这样做虽然可以避免上述bug,但是不太友好

Environment Info
antd undefined
React ^16.12.0
System mac
Browser chrome

"@ant-design/pro-layout": "^5.0.12"
"react": "^16.12.0",

@kerm1it
Copy link
Member

kerm1it commented Aug 10, 2020

Fixed in react-component/picker#122

@kerm1it kerm1it closed this as completed Aug 10, 2020
wangmeijian pushed a commit to wangmeijian/ant-design that referenced this issue Oct 11, 2022
…ant-design#122)

* fix(range): panel keep open when nextValue is empty(ant-design#26024)

* chore: udpate test case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. 👷🏻‍♂️ Someone working on it
Projects
None yet
Development

No branches or pull requests

3 participants