3

When loading jQuery 3.1.1 and jQuery UI 1.12.1 (both production versions) the datepicker forward and back arrows do not take you to the proper months when numberOfMonths is greater than 1 and showCurrentAtPos is greater than 0.

The HTML is:

<input type=text id=selector />

The javaScript code to create the datepicker is very basic:

jQuery('#selector').datepicker({
 stepMonths: 1,
 numberOfMonths: 2,
 showCurrentAtPos: 1,
 dateFormat: 'yy-mm-dd',
 showOtherMonths: true,
 selectOtherMonths: true,
 showButtonPanel: true
});

Here is an example of the broken behavior:

jsFiddle

To get it to work properly, I had to load the GIT version 1.12.0-pre

Here is an example of it working as it should:

jsFiddle

Any suggestions? I'd prefer to use the production version of jQuery UI, but in this case, that isn't working.

jQuery UI Bug Ticket

Someone beat me to it, my bug ticket was a duplicate.

The (currently) open ticket is: jQuery UI Bug Ticket

3
  • Post at bugs.jqueryui.com ?
    – j08691
    Commented Dec 20, 2016 at 18:31
  • @Will P Tested in FF and IE11, no Chrome to test with. Are you sure in the broken example, when you click the left arrow to go to the previous month, it actually goes backwards? Commented Dec 20, 2016 at 18:31
  • Appears this bug is closed. Did you get an answer? If so many include it as an answer here and close the post.
    – Twisty
    Commented Jun 2, 2017 at 17:02

0