Editing an existing range without resetting it #2313
Unanswered
danieldenbraven
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It's been 8 years since version 2 of this library came out. I do not recall the "why" of anything that old any longer. If you prefer the old behavior, you can continue using the old code. It's just a couple dozen lines of code that renders a calendar. Zero of the releases were security updates. There's no harm in staying with the version you liked. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, we were updating an old application that used an early version of the daterangepicker that had a certain workflow to selecting the range, similar to what you would find for example on the Lufthansa website. Once we upgraded to the latest version, it seems that if you already have a range selected and you click anywhere on the calendar (especially if newDate > startDate) the whole range gets reset and the day you clicked becomes the start date.
Was there a specific reason or a usability aspect to changing this? This becomes quite difficult for users to manage if you want to edit a date range from 01.03.2023 - 10.03.2023, for example, and then click on 13.03.2023 to extend the range with 3 days, but the whole thing resets and the new start date is 13.03.2023. Is there a suggestion on how to change this behaviour? Looking at the code, seems a bit difficult to do without a fork.
Beta Was this translation helpful? Give feedback.
All reactions