longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

Month dropdown does not show all months #452

Closed Gelo93 closed 5 years ago

Gelo93 commented 5 years ago

I have updated to the newest version of the daterange picker and have noticed something different from previous versions. When clicking on month dropdown, I am given only the previous months and cannot select any further months, image attached.

screen shot 2018-09-18 at 10 40 51

Thank you

Gelo93 commented 5 years ago

Link to Fiddle: https://jsfiddle.net/smz18vyw/13/

monovertex commented 5 years ago

Thanks for reporting this bug, @Gelo93. I confirmed it, we'll take a look at it.

Gelo93 commented 5 years ago

Updated PR without the formatting changes here, @monovertex

monovertex commented 5 years ago

@Gelo93, please see #455 and let me know if it fixes your issue. You can test the fixed version in this jsfiddle.

Gelo93 commented 5 years ago

Hi @monovertex, it shows the correct dates on dropdown now, but the wrong month is shown to have a tick next to it. As shown in the screenshot, the months showing on the date range are August and September, but January is shown to have a tick next to it.

screen shot 2018-09-23 at 10 43 00

Thanks

monovertex commented 5 years ago

@Gelo93, thanks for the help! I missed that bug. Please see this new version. The bug should be now fixed and the un-selectable options should be handled more graciously.

Gelo93 commented 5 years ago

@monovertex Thank you, that is working perfectly now