qodesmith / datepicker

Get a date with JavaScript! A datepicker with no dependencies.
344 stars 101 forks source link

date range: move end range calendar display month to the one selected in start range #75

Closed sfusato closed 4 years ago

sfusato commented 4 years ago

When using the datepicker in "range" mode, if you select a date from the future, say June 2020, in the start range calendar, the end range calendar will still display with current month when opened even though all the dates up to June 2020 are disabled.

Instead, it should open with June 2020 (as in my example) and save the user a few clicks.

qodesmith commented 4 years ago

Good catch. I'm currently working on adding Cypress testing to this library, so as soon as that's done I'll get this going. I agree this should be the user experience.

qodesmith commented 4 years ago

@sfusato This is now available in 5.4.0!

sfusato commented 4 years ago

Awesome. Thank you!

Can you push 5.4.0 also to NPM? Thanks.

qodesmith commented 4 years ago

Oops! Just pushed :)