ant-design-vue icon indicating copy to clipboard operation
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

Open lsm19971222 opened this issue 1 year ago • 1 comments
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

  1. Restrict after clicking on a specific date
  2. Restrictions can be applied when switching selection boxes
  3. Don't allow switching selection boxes

What is actually happening?

You can choose any date by switching the date control selection box

lsm19971222 avatar Dec 30 '23 06:12 lsm19971222

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

GaLiGayGay-X avatar Jan 19 '24 06:01 GaLiGayGay-X

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

github-actions[bot] avatar Mar 20 '24 02:03 github-actions[bot]