Flatpickr: [Range Plugin] Logic select range dates seem wrong

Created on 19 May 2018  路  3Comments  路  Source: flatpickr/flatpickr

I see agoda as a good example how range picker works: https://www.agoda.com/
peek 2018-05-19 10-28

And in flatpickr:
peek 2018-05-19 10-31

The wrong is when I have a selected, then wanna change date. If I pick at start-date, select a date greater than current end-date the selected dates seem change order.

And seem we need disable dates after start-date in end-date picker too.

Most helpful comment

True +1

All 3 comments

True +1

@chmln I have same issue while trying to use this nice plugin, could you help us on how to fix this issue please?

I was going to post a PR for this, but then I noticed that I already fixed it in 2019 with #1795
I will probably do it again next year because I will forget about it and it will still not be merged :(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Spoki4 picture Spoki4  路  3Comments

mgohin picture mgohin  路  4Comments

mchaves-ciandt picture mchaves-ciandt  路  3Comments

deangibson89 picture deangibson89  路  3Comments

PierreGirbau picture PierreGirbau  路  3Comments