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
I searched through the Ant Design repository for any existing issues related to the manual clearing of the DatePicker and the onChange event not being triggered. Here are some related issues that might be of interest:
While these issues may not directly address the specific problem you are experiencing, they might provide some insights or workarounds. If none of these issues resolve your problem, it might be a new issue that needs further investigation.
For now, I recommend checking the configuration of your DatePicker component and ensuring that the allowClear property is set correctly. Additionally, you might want to monitor the Ant Design GitHub repository for any updates or fixes related to this issue.
If you have any more questions or need further assistance, feel free to ask!
🪧 Tips
For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.
这个感觉确实需要解决一下,因为在使用留空功能的时候,一旦选择了日期,就没办法通过手动删除的方式让留空位置留空,必须要点击清除按钮才能继续操作
This feels like something that really needs to be fixed, because when using the allow Empty function, once a date is selected, there is no way to manually delete the value, and you must click the Clear button to continue.
Activity
petercat-assistant commentedon Jan 18, 2025
I searched through the Ant Design repository for any existing issues related to the manual clearing of the DatePicker and the
onChangeevent not being triggered. Here are some related issues that might be of interest:While these issues may not directly address the specific problem you are experiencing, they might provide some insights or workarounds. If none of these issues resolve your problem, it might be a new issue that needs further investigation.
For now, I recommend checking the configuration of your DatePicker component and ensuring that the
allowClearproperty is set correctly. Additionally, you might want to monitor the Ant Design GitHub repository for any updates or fixes related to this issue.If you have any more questions or need further assistance, feel free to ask!
🪧 Tips
For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.mleister97 commentedon Feb 9, 2025
bump
yellowryan commentedon Feb 17, 2025
这个感觉确实需要解决一下,因为在使用留空功能的时候,一旦选择了日期,就没办法通过手动删除的方式让留空位置留空,必须要点击清除按钮才能继续操作
This feels like something that really needs to be fixed, because when using the
allow Emptyfunction, once a date is selected, there is no way to manually delete the value, and you must click the Clear button to continue.mleister97 commentedon Mar 5, 2025
@MadCcc I would not consider this as feature request, but as bug instead
lunaticwithaduck commentedon Sep 12, 2025
bump
alii13 commentedon Oct 25, 2025
Hey folks, I would love to contribute on this issue. If you can assign this issue to me.
@li-jia-nan / @meet-student
fix(date-picker): trigger onChange when manually clearing input
mleister97 commentedon Jul 29, 2026
IMO, manually removing the date should work as expected. Any updates?