Skip to main content

Search and Top Navigation

#15129 new bug ()

Opened January 18, 2017 07:08PM UTC

Last modified January 18, 2017 07:08PM UTC

datepicker - previous button with multiple months and maxDate

Reported by: op16 Owned by:
Priority: minor Milestone: none
Component: ui.datepicker Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:

When showing multiple months and the current month is not displayed first (e.g. because of maxDate: 0), the user needs to click the previous button multiple times in order to see any effect.

  numberOfMonths: 3,
  maxDate: 0,
  stepMonths: 1
<div id="datepicker"></div>

In this example 3 clicks are needed, which makes the button seem broken initially. The number of required clicks depends on the values for stepMonths and maxDate.

This is a regression, since jQueryUI v1.11.4 works as expected

May be related to #15102, but IIRC showCurrentAtPos had some bug of its own.

Attachments (0)
Change History (0)