Flatpickr: Feature request for range + disabled dates

Created on 18 Jul 2017  路  3Comments  路  Source: flatpickr/flatpickr

I am using the disabled dates function feature. It would be nice to allow ranges to be selected across disabled dates. I realize that this functionality is desired for some use cases as well, but a toggle would allow me to create a datepicker where a user can select the "end" of a range regardless of disabled dates falling inbetween. My use case is forcing a user to pick a certain number of days "after" the start date, and disabling those days so that the user must pick a date later than this specific time.

Most helpful comment

Hi. I know this seems to be closed but the requested feature (and what I come across in some use cases) is that the user won't be selecting any disabled date but selecting across them so that the disabled dates will fall into the range. So user will still be selecting enabled dates only but having the ability to let disabled dates exists within the selected range.

All 3 comments

I'm on this same scenario, I need to disable dates, like holidays but allow the user to still select a range with those values in between.

Hello,

Disabled dates are not selectable by definition.
This behavior is appropriate for the vast majority of use cases.

Allowing to select disabled dates in range mode should be possible by removing the disabled class name from the day elements. one could trivially implement it as a part of a plugin.

Hi. I know this seems to be closed but the requested feature (and what I come across in some use cases) is that the user won't be selecting any disabled date but selecting across them so that the disabled dates will fall into the range. So user will still be selecting enabled dates only but having the ability to let disabled dates exists within the selected range.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anhskohbo picture anhskohbo  路  3Comments

ibarral picture ibarral  路  3Comments

zortext picture zortext  路  3Comments

mchaves-ciandt picture mchaves-ciandt  路  3Comments

bedakb picture bedakb  路  3Comments