Skip to main content

Search and Top Navigation

#6996 closed bug (worksforme)

Opened February 15, 2011 09:25PM UTC

Closed February 16, 2011 11:42AM UTC

Change year drop down list in IE 8

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

I am having an issue with the change year list. When I select a year in the list and then try and click on the list again to select another year, the list pops up that quickly goes away. After the list goes away if I am able to select the list the next time, but every time I make a selection the next time i try and click the list it bugs again.

#!div style="font-size: 80%"
Code highlighting:
  {{{#!js
var dates = $("#txtStartDate, #txtEndDate").datepicker({
                changeYear: true,
                changeMonth: true,
                onSelect: function (selectedDate) {
                    var option = this.id == "txtStartDate" ? "minDate" : "maxDate",
				        instance = $(this).data("datepicker");
                    date = $.datepicker.parseDate(
				        instance.settings.dateFormat ||
				        $.datepicker._defaults.dateFormat,
					    selectedDate, instance.settings);
                    dates.not(this).datepicker("option", option, date);
                }
            });
  

}}}

Attachments (0)
Change History (1)

Changed February 16, 2011 11:42AM UTC by rdworth comment:1

resolution: → worksforme
status: newclosed

I was not able to reproduce this issue using http://jqueryui.com/demos/datepicker/dropdown-month-year.html . If you have can reproduce, please share a minimal test case using jsFiddle or jsbin.