ant-design-vue
ant-design-vue copied to clipboard
The RangePicker component failed to restrict dynamic dates after adding the showTime attribute. You can choose any date by switching the selection box
trafficstars
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Version
3.2.20
Environment
dev
Reproduction link
https://github.com/lsm19971222/test-vue3.git
Steps to reproduce
An example of selecting a date picker on the Antd official website that does not exceed 7 days. Add the showTime attribute.
<a-range-picker
showTime
:value="hackValue || value"
:disabled-date="disabledDate"
@change="onChange"
@openChange="onOpenChange"
@calendarChange="onCalendarChange"
/>
What is expected?
One of the following results is sufficient
- Restrict after clicking on a specific date
- Restrictions can be applied when switching selection boxes
- Don't allow switching selection boxes
What is actually happening?
You can choose any date by switching the date control selection box
I'm also having the same issue, after setting showTime, calendarChange doesn't immediately trigger when selecting a date. Unless I click the OK button, but this interaction is not friendly
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days