Skip to main content

Search and Top Navigation

#8277 closed bug (duplicate)

Opened April 25, 2012 03:53PM UTC

Closed July 17, 2012 12:18PM UTC

Last modified July 17, 2012 12:18PM UTC

DatePicker defaultDate not highlighted

Reported by: chipmunk Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.datepicker Version: 1.8.19
Keywords: Cc:
Blocked by: Blocking:

When specifying a default date, the popup calendar shows the correct calendar month, but does not highlight the default date. The default date only gets the hover state, which disappears as soon as you mouse over the calendar.

This contradicts the documentation for the defaultDate option, which says "Set the date to highlight on first opening if the field is blank."

This is the same issue as #5676. The fix for that caused #5984, so the fix was reverted, restoring the original bug.

Attachments (0)
Change History (5)

Changed April 25, 2012 04:45PM UTC by chipmunk comment:1

What is the correct behavior, so that the default date is properly highlighted?

  • The default date's <td> has the class this._currentClass (e.g. 'ui-datepicker-current-day')
  • The default date's <a> has the class 'ui-state-active'
  • Both of the above
  • Something else

Changed July 16, 2012 02:57PM UTC by mrozik comment:2

If we wanna add 'ui-state-active' class to a date configured as default, we should also set this value in the input field. It will be consistient across plugin. Maybe 'highlight' in this context means 'hover', but this should be corrected in docs.

Changed July 17, 2012 12:16PM UTC by mrozik comment:3

duplicate of #8170

Changed July 17, 2012 12:18PM UTC by scottgonzalez comment:4

resolution: → duplicate
status: newclosed

Changed July 17, 2012 12:18PM UTC by scottgonzalez comment:5

Duplicate of #8170.