Ticket #6709 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Autocomplete: Null ui.item on change event in IE8

Reported by: Sachemo7 Owned by:
Priority: minor Milestone: 1.8.7
Component: ui.autocomplete Version: 1.8.6
Keywords: Cc:
Blocking: Blocked by:

Description

The change event does not work as expected in IE8 using the following test case. The change event works as expected in Chrome.

 http://jsbin.com/eyeva3

Select an item using the mouse. Then make the autocomplete lose focus. An alert will show that ui.item is null when it should be the selected item.

If you repeat these steps but instead select an item using the "enter" key, the alert will show that ui.item is set to the selected item.

This seems to be a bug left over from Ticket #5775 when the change event wouldn't fire in IE8 when an item was selected using the mouse.

Change History

comment:1 Changed 3 years ago by scott.gonzalez

  • Status changed from new to open
  • Summary changed from Null ui.item on Autocomplete Change Event in IE8 to Autocomplete: Null ui.item on change event in IE8

comment:2 Changed 3 years ago by Scott González

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

Autocomplete: Update selectedItem in the asynchronous focus handling for IE. Fixes #6709 - Autocomplete: Null ui.item on change event in IE8.

Changeset: eac910f3157af42c7fcd2230aaff8508974ecc9a

comment:3 Changed 3 years ago by scott.gonzalez

This actually fixed a failing unit test that I had been meaning to look into :-)

comment:4 Changed 3 years ago by scott.gonzalez

  • Milestone changed from 1.9 to 1.8.7
Note: See TracTickets for help on using tickets.