Change default range-selection of dates? #2678
Unanswered
JamCodesSometimes
asked this question in
Support
Replies: 1 comment
-
Here is a possible workaround: Let me know if this works for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
I’m using the react day picker’s range selection method in my application, wherein I need to implement a functionality that -> If user has already selected a range (startDate and endDate) and user tries to select another date, the previous selection is cleared and the user is able to select another date.
ScreenRecording_01-31-2025.01-29-06_1.mov
In this screen recording of the demo provided in the documentation , you can see a user is able to select other dates even after they have a range selected, but the previous selection is not cleared, instead either the end date or the start date moves around.
Can someone help me achieve the desired result? Wherein if range is already selected and another date is clicked, the previous selection is cleared/ reset?
Thanks, I appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions