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:
Go to datepicker
Click on 'Current day'/'Curret weeek' range filter
See incorrect year in month label
Expected behavior
User should see correct year, not a future date.
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:
Expected behavior User should see correct year, not a future date.
Screenshots
Stackblitz link stackblitz link.