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

Incorrect disabled state in month and year views (v3.5.3) #637

Open
dkirkby opened this issue Sep 28, 2024 · 1 comment
Open

Incorrect disabled state in month and year views (v3.5.3) #637

dkirkby opened this issue Sep 28, 2024 · 1 comment
Labels

Comments

@dkirkby
Copy link

dkirkby commented Sep 28, 2024

This works as expected when cellType is "day" but not for "month" or "year":

new AirDatepicker("#picker", {
  onRenderCell: ({date, cellType}) => {
    const disabled = (date.getFullYear() != 2023);
    return { disabled };
  },
})

Specifically, I expected all months to be disabled in the month view when year != 2023, and all years except 2023 to be disabled in the year view.

Here is a jsFiddle demonstrating the problem with v3.5.3.

@t1m0n
Copy link
Owner

t1m0n commented Oct 30, 2024

Hi! thanks for the bug report, I'll check

@t1m0n t1m0n added the bug label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants