kbwood / datepick

jQuery Datepicker Plugin
87 stars 39 forks source link

Multiple months display is broken #37

Open wir opened 8 years ago

wir commented 8 years ago

Hello,

First of all thank you for your this wonderful plugin. I've been using it for a while and just noticed this weird bug. I don't know when it started.

When monthsToShow option is set to more then 1 clicking on anything in those extra months just switches months. Something like next months click all over the calendar. It can be tested in your demo under tab Multiple and then click on any date in other two months. First month one works normally. Tested in all the latest browser, inline and normal and it is the same.

Best regards! Sasha.

kbwood commented 8 years ago

When you click on a date it tries to select it, within the limits you've set, then redraws the calendars starting from that month. The dates are still selected, when possible.

wir commented 8 years ago

Hello Keith and thank you for answering,

Before, every month behaved as the first one, If you selected a date then months didn't jump. Now if you have multiSelect or rangeSelect enabled you need to catch the dates all over the place :) I don't think this is expected behavior as it makes really hard to manage dates. What can we do for datepick to stop redrawing calendar when day in other then first months is clicked?

Best regards, Sasha.

BigLittleFlan commented 8 years ago

Did any progress get made on this? @wir did you find a way around this? We're finding users are getting confused that the calendar moves on click

wir commented 8 years ago

Hey @BigLittleFlan, unfortunately not. I just left it in single month mode and to be honest moved on for now...

theOtherGreg commented 7 years ago

It would be great to have an option where selecting a date from a month other than the first did NOT redraw the calendar. (I'm looking to have all months in a year shown at once, no need to see months in other years) This would enable quickly selecting a date in any month of the year, without the calendar changing constantly.

boynet commented 7 years ago

+1 and I think related bug is that multiple mode not working in the Three dates inline demo.

just a little update: version 4.1 working great with multiple months and multiple selects. I can confirm it's the only datepicker plugin available that do the job with this specific needs

iulianflst commented 7 years ago

+1 The way range is working now is very confusing and not user friendly. How can we stop the calendar redraw everytime we click a date ?

markusweb commented 4 years ago

+1 for me! just try to switch from version 3.7 to 5.1

markusweb commented 4 years ago

see my patch https://github.com/kbwood/datepick/issues/49#issuecomment-622573370