Ticket #7932 (closed bug: notabug)

Opened 19 months ago

Last modified 19 months ago

datepicker shows 1900-01-01 when used with jquery.Live

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

Description

Datepicker shows wrong date when used with jQuery Live example is available here:  http://jsbin.com/akefaf

When you click first time on the input then picker shows current date, you can change months and everything seems fine. Now click outside the input, somewhere on the page, and then click on the input again ... the date is still fine, now change month (next, prev.), the date in picker will be changed to 1900-01-01.

This bug exists only when used together with jquery.live

Hope you can fix it somehow. Brgs

Change History

comment:1 Changed 19 months ago by scott.gonzalez

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

You can't just mess with internal data like the hasDatepicker class and then try to initialize the datepicker again.

Note: See TracTickets for help on using tickets.