Opened 6 years ago

Closed 4 years ago

#7654 closed bug (wontfix)

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

Change History (4)

comment:1 Changed 5 years ago by Scott González

Milestone: 1.9.01.11.0

comment:2 Changed 5 years ago by mikesherov

Status: newopen

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

comment:3 Changed 4 years ago by tj.vantoll

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

comment:4 Changed 4 years ago by Scott González

Resolution: wontfix
Status: openclosed

Yup.

Note: See TracTickets for help on using tickets.