-
Notifications
You must be signed in to change notification settings - Fork 13
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
[Question] Is there a way to reset user's start date selection on calendar-range #48
Comments
Makes sense. There's definitely a need for some ability to cancel a tentative selection. I'll have a think on how best to support this |
Check out #49. I've exposed a Would this work for you? |
Hey @WickyNilliams , thank you for taking the time to look into this so quickly. I looked at the changes in the PR, if I understood correctly we would have a new I think this will work great for us 👍🏼 |
No, you didn't miss anything, that's exactly right 👍 |
Released in |
Our date picker displays a panel that renders the cally component inside when the date picker input is focused/clicked.
We have noticed a strange behavior when using the calendar-range component, I'll try to explain it:
Is there a way we can reset the calendar-range state? I'm attaching a video here for clarification, the same can be seen in the Cally documentation site.
CleanShot.2024-05-29.at.18.35.20.mp4
What we would like, is a way that allows us to reset the calendar-range state if the user clicks outside and no end date has been selected. This should take into account that if a date range (start/end date is already set) we should be able to keep that range selection and only reset the start date selection action that was not completed.
I hope I've explained myself, otherwise please feel free to ask for details, I'll be more than glad to provide as many as needed.
The text was updated successfully, but these errors were encountered: