NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.88k stars 3.94k forks source link

RangePicker: Ineligible dates are not disabled #6321

Open jimcorban opened 3 years ago

jimcorban commented 3 years ago

Reproduction link

https://stackblitz.com/edit/itzefl--run?file=src/app/app.component.ts

Steps to reproduce

Select a start date. Note that any date prior to the start date can be selected as the end date.

What is expected?

When selecting an end date, dates prior to the start date should be disabled, and when selecting a start date, dates after the end date should be disabled.

What is actually happening?

Any date can be selected for the start or end dates, even ones that are incompatible with the other end of the range.

Environment Info
ng-zorro-antd 11.0.1
Browser Chrome - latest

The React version disables ineligible dates as expected. https://ant.design/components/date-picker/#RangePicker

jimcorban commented 3 years ago
ng-disable-dates
jimcorban commented 3 years ago
react-disable-date
wenqi73 commented 3 years ago

Related to https://github.com/NG-ZORRO/ng-zorro-antd/issues/6529