fetrarij / ngx-daterangepicker-material

Pure Angular 2+ date range picker with material design theme, a demo here:
https://fetrarij.github.io/ngx-daterangepicker-material/
MIT License
249 stars 252 forks source link

maxDate input causes incorect year in month label #411

Open galuwka opened 2 years ago

galuwka commented 2 years ago

Versions

Describe the bug If maxDate was set to current day and user clicks on current day/current week range filter then incorrect year appears in month label.

To Reproduce Steps to reproduce the behavior:

  1. Go to datepicker
  2. Click on 'Current day'/'Curret weeek' range filter
  3. See incorrect year in month label

Expected behavior User should see correct year, not a future date.

Screenshots

Screenshot 2022-01-11 at 10 30 46

Stackblitz link stackblitz link.