You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the value with backspace and leave the component
The datepicker will have it's value setted to the previous one
What is expected?
It's expected to have the input's value cleared if is the prop allow clear is true. Having it's value reset is frustrating and makes the input confuse. Also, the clear icon isn't accessible with keyboard navigation, worsening the problem in the case of accessibility. My suggestion for that fix may be a this behavior as default or a prop, if necessary.
What is actually happening?
The datepicker have it's value setted to the previous date assigned
Environment
Info
antd
5.17.0
React
18.3.1
System
Windows 11
Browser
Chrome Version 124.0.6367.118 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered:
Reproduction link
https://ant.design/components/date-picker
Steps to reproduce
What is expected?
It's expected to have the input's value cleared if is the prop allow clear is true. Having it's value reset is frustrating and makes the input confuse. Also, the clear icon isn't accessible with keyboard navigation, worsening the problem in the case of accessibility. My suggestion for that fix may be a this behavior as default or a prop, if necessary.
What is actually happening?
The datepicker have it's value setted to the previous date assigned
The text was updated successfully, but these errors were encountered: