Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Watheq-IoT opened this issue Feb 26, 2023 · 1 comment
Open

Comments

@Watheq-IoT
Copy link

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

@Jerit3787
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants