Skip to main content

Search and Top Navigation

#7654 closed bug (wontfix)

Opened August 19, 2011 09:12AM UTC

Closed December 06, 2012 04:42PM UTC

Datepicker doesn't fire change event on the input element when onSelect is set.

Reported by: kit Owned by:
Priority: minor Milestone: 1.11.0
Component: ui.datepicker Version: 1.8.14
Keywords: Cc:
Blocked by: Blocking:
Description

JSFiddle: http://jsfiddle.net/kitsunde/Eas4e/3/

jQuery UI 1.8.14 with onSelect bound:

Action: Change the date in #input1 using datepicker.

Result: Change event does not fire when control loses focus.

Expected Result: Change event fire when control loses focus.

Native experience:

Action: Change the date in the input box using the native browser controls.

Result: Change event fire when control loses focus.

Expected Result: Change event fire when control loses focus.

jQuery UI 1.8.14 with onSelect unbound:

Action: Change the date in #input2 using datepicker.

Result: Change event fire when control loses focus.

Expected Result: Change event fire when control loses focus.

Sloppy Workaround:

onClose: function(){ $(this).trigger("change") };

Tested with:

Chrome stable

jQuery UI 1.8.14 and 1.8.7

jQuery 1.6.2

Attachments (0)
Change History (4)

Changed October 11, 2012 02:43PM UTC by scottgonzalez comment:1

milestone: 1.9.01.11.0

Changed October 19, 2012 07:27PM UTC by mikesherov comment:2

status: newopen

confirmed on latest: http://jsfiddle.net/f5rXJ/

Changed December 06, 2012 04:33PM UTC by tj.vantoll comment:3

scott_gonzalez - Should this be closed per the same reasoning as #8878?

Changed December 06, 2012 04:42PM UTC by scottgonzalez comment:4

resolution: → wontfix
status: openclosed

Yup.