Ticket #5676 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

DatePicker Dialog defaultDate incorrect behaviour

Reported by: dsdsico Owned by:
Priority: critical Milestone: 1.8.3
Component: ui.datepicker Version: 1.8.1
Keywords: incorrect defaultDate popup behaviour Cc:
Blocking: Blocked by:


The following code displays the defaultDate just fine:

<script type="text/javascript">
// Datepicker
   defaultDate: new Date(2010, 4, 25)

<div class="datepicker"></div>

However, as soon as I want to use the popup behaviour by changing the DIV element into a INPUT element, the defaultDate only gets a rollover state, which is gone as soon as I hover my mouse over the calendar (the javascript remains the same):

<input class="datepicker" />

I attached two screenshots of the situation: the first (correct) one displays an inline calendar with the selected date set to 25/5/2010 (although I initialized a Date() object with 25/4/2010, is this another bug?), the second (incorrect) one displays a popup calendar, where day 25 is merely hovered instead of selected.

I also attached index.html demonstrating the issue.



ticket-5676-demonstration.zip Download (138.7 KB) - added by dsdsico 5 years ago.
HTML / JS / CSS + 2 screenshots demonstrating the issue

Change History

Changed 5 years ago by dsdsico

HTML / JS / CSS + 2 screenshots demonstrating the issue

comment:2 Changed 5 years ago by afcapel

I've made a simple patch that seems to solve the issue:


Hope it helps!

comment:3 Changed 5 years ago by rdworth

  • Status changed from new to closed
  • Resolution set to fixed

Thanks afcapel. Fixed in  eb13c01

comment:4 Changed 5 years ago by scott.gonzalez

  • Milestone changed from 1.9 to 1.8.3
Note: See TracTickets for help on using tickets.