valor-software / ngx-bootstrap

Fast and reliable Bootstrap widgets in Angular (supports Ivy engine)
https://valor-software.com/ngx-bootstrap
MIT License
5.53k stars 1.69k forks source link

Using the first day of a month in disabledDates disables the month in the month selection #6613

Open botskiller opened 1 year ago

botskiller commented 1 year ago

Bug description: I'm using disabledDates, for exmple: [disabledDates]="daDate"; const dsDate = [new Date('2023-05-01')];

If the day is the first day of a month it is no longer possible to select that month in the month selection. In this case the month may is disabled. This only happens when its the first day, for example '2023-05-02' is working perfectly fine.

It is possible to reach the month, by selection the previous month and clicking on 'next'. There the first day is correctly disabled.

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: 10.3.0

Angular: 15.1.3

Bootstrap: 5.1.3

Expected behavior

Only the first day of the month should be disabled, not the whole month itself.

sebopopo commented 3 months ago

Having the same issue. Any news so far?