Ticket #7654 (closed bug: wontfix)

Opened 3 years ago

Last modified 2 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 2 years ago by scott.gonzalez

  • Milestone changed from 1.9.0 to 1.11.0

comment:2 Changed 2 years ago by mikesherov

  • Status changed from new to open

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

comment:3 Changed 2 years ago by tj.vantoll

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

comment:4 Changed 2 years ago by scott.gonzalez

  • Status changed from open to closed
  • Resolution set to wontfix

Yup.

Note: See TracTickets for help on using tickets.