materialize icon indicating copy to clipboard operation
materialize copied to clipboard

Date value keep increasing upon next and prev click, yearRange issue

Open Watheq-IoT opened this issue 2 years ago • 1 comments

Hi I just noticed abnormal behavior,

the configuration is yearRange:[2023,2024]

when clicking on next or previous and the dates exceed the above range the calendar view successfully show the dates in the range, however the date value in the disableDayFn function keep increasing cause issues with the disabledDays.

issue-datepicker

if you can see the attached snapshot, the dates is 2025 while the screen shows the dates as 2023.

to reproduce the issue, just add yearRange for 2 years, add disabled days using disableDayFn function, then click on the next button till the end of the range, then you will notice that the date keep increasing and not being reset to "from" yearRange, and the disabled days will be active while the normal behavior to be inactive.

Best Watheq

Watheq-IoT avatar Feb 26 '23 16:02 Watheq-IoT

Hi, this project is no longer maintained! The community-managed fork is still being maintained. Please open an issue there instead. Thanks! https://www.github.com/materializecss/materialize

Jerit3787 avatar Mar 13 '23 12:03 Jerit3787