You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a possible duplicate of two existing issues ( #348 and #423 ), but those have not seen any activity in 2+ years now (and dating to the jQuery-dependent version)
When using range selection, there should be an option to allow disabled days (with default probably set to false, which is the more common usecase, I imagine). If the option is set to false and disabled dates are in range, the selection should simply not happen, and everything should unselect (or remain on the previous selected range)
For the moment, it is doable with a bit of hacking around (see below, using Day.js library), but it would be nice to have by default in ADP
Hmm, honestly this doesn't seem like a must have native feature. It is vary from user's needs, for instance, how many disabled dates should be in range to consider it as a disabled, should calendar disable range or just show tooltip with warning, should it disable range when user focuses on cell or when he selects one, etc.
I think I will add onFocus event or smth similar to gain more control, then user can create any behaviour that he wants.
@Eldzej added some new options which grant you more control over range behaviour. Added example of disabled range under Prohibiting range selection section https://air-datepicker.com/examples
This is a possible duplicate of two existing issues ( #348 and #423 ), but those have not seen any activity in 2+ years now (and dating to the jQuery-dependent version)
When using range selection, there should be an option to allow disabled days (with default probably set to
false
, which is the more common usecase, I imagine). If the option is set tofalse
and disabled dates are in range, the selection should simply not happen, and everything should unselect (or remain on the previous selected range)For the moment, it is doable with a bit of hacking around (see below, using Day.js library), but it would be nice to have by default in ADP
The text was updated successfully, but these errors were encountered: