-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Feature] add min range #17
Comments
I think we need to add the first click in the onChange (to get the from) and then the to. |
@metalmaninfr Currently we are returning the from and to in onChange, |
That's exactly what we are looking for. I think it's from Day, we need to add a first condition if dayjs(from) && to === "" to call setSelectedDays() with at least from at the first click. Maybe I'm wrong. This is in order to set the min range after the first click. |
@davidvenin |
awesome thank you :) |
Problem
it's almost impossible to create a custom function that handles both start and end date on the range calendar
Solution
add min range prop to calendar or return selected
from
&to
on the onChange propCommunity Benefits
be able to use calendar to set a minimum range of days
The text was updated successfully, but these errors were encountered: