Skip to main content

Search and Top Navigation

#7079 closed bug (wontfix)

Opened March 07, 2011 09:34PM UTC

Closed June 16, 2011 05:23PM UTC

gotoCurrent doesn't work if dateFormat doesn't have day

Reported by: eheikes Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.datepicker Version: 1.8.10
Keywords: Cc:
Blocked by: Blocking:
Description

If the dateFormat option does not have a "day" component, the datepicker does not open to the currently selected month+year.

Example code: http://jsbin.com/itaqi5/2

Steps to reproduce:

1. Click on field and choose a date before/after today's month.

2. Click on field again.

  • Expected: Datepicker shows month+year for current date.
  • What happens: Datepicker shows month+year for today's date.

Tested on Chrome 9.0.597.94 (Ubuntu).

Attachments (0)
Change History (2)

Changed May 10, 2011 11:08PM UTC by tomgallacher comment:1

Changed June 16, 2011 05:23PM UTC by scottgonzalez comment:2

resolution: → wontfix
status: newclosed

Datepicker is only designed to support picking days. A separate widget would be necessary for properly selecting other values, like weeks or months. For an example of what a month picker should look like see http://imgur.com/TXCuZ