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

Not being able to select range if there are disabled dates in between #19

Open
mohisham opened this issue Jun 21, 2019 · 3 comments
Open

Comments

@mohisham
Copy link

I have provided a method to selectableDayPredicate to disable certain dates. However, I am still able to select these disabled dates as long as the initial start and end date lie out side of this range.

For example, selectableDayPredicate returns false for 2019-06-20, and is thus disabled on the date picker. If you select a range of 2019-06-01 to 2019-06-25, you are able to even though it includes a disabled date.

Any way around this?

@sahajarora1286
Copy link

I have added support in this plugin for blocked dates.
A blocked date cannot be selected over, and you can assign a custom block-image for that date's background.
I can create a PR if you someone still needs that functionality.

@parth22
Copy link

parth22 commented Oct 9, 2019

@sahajarora1286 i really need that blocked dates functionality can you please tell me how you done that. i'm also using this package but can't find a way to disable some date range which is already occupied.

@mathuld
Copy link

mathuld commented Feb 7, 2020

@sahajarora1286 I need that blocked dates too. Is it possible to tell me how you done that ?

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

4 participants