Dogfalo / materialize

Materialize, a CSS Framework based on Material Design

Home Page:https://materializecss.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Watheq-IoT opened this issue · comments

commented

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

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