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

bug with disableGaps when only one disabled date #262

Open
ligne13 opened this issue May 14, 2024 · 0 comments
Open

bug with disableGaps when only one disabled date #262

ligne13 opened this issue May 14, 2024 · 0 comments

Comments

@ligne13
Copy link

ligne13 commented May 14, 2024

Hi,

it seems disableGaps does not work if there is only one disabled date in the range.

In this example: https://codesandbox.io/p/sandbox/pedantic-easley-6xjsqf?file=%2Fcalendar.ts%3A16%2C7, May 23rd is disabled, but it is possible to select a range starting on May 22nd and finishing on May 24th.

However if you change the disabled setting to a range of dates (example: disabled: ["2024-05-23:2024-05-24"]) the disableGaps setting is working.

Is this a bug with the disableGaps setting?

Thank you

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

1 participant