Skip to content

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

@Watheq-IoT

Description

@Watheq-IoT

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions