Skip to main content

Search and Top Navigation

#8341 closed bug (notabug)

Opened May 21, 2012 05:02PM UTC

Closed May 21, 2012 05:21PM UTC

Last modified May 21, 2012 08:49PM UTC

ui.autocomplete's "selectItem" method not firing in IE 9 and IE 8

Reported by: mdreyer Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.autocomplete Version: 1.8.6
Keywords: Cc:
Blocked by: Blocking:
Description

Hello!

My site is using jquery-1.4.4.js, jquery-ui-1.8.6.custom.js and jquery.ui.autocomplete.js.

The problem is simple: I ran IE's debugger and was able to determine that jquery.ui.autocomplete.js's "selectItem" method simply does not fire when I select an autocomplete option in IE 9 or IE 8; however IE 7 and all other browsers are fine. There are no errors on the console or any other type of error warning, it seems like it just doesn't want to fire in these versions of IE.

Have you ever heard of this before? Any suggestions on how to fix it or where to look? I tried updating the jquery and jquery-ui scripts but the problem persists.

Thanks,

-Michael

Attachments (0)
Change History (6)

Changed May 21, 2012 05:21PM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

There's no such method as selectItem.

Changed May 21, 2012 06:44PM UTC by mdreyer comment:2

Replying to [comment:1 scott.gonzalez]:

There's no such method as selectItem.

I'm referring to this function in ui.autocomplete:

function selectItem(li) {

if (!li) {

li = document.createElement("li");

li.extra = [];

li.selectValue = "";

}

var v = options.onSelectText(li);

input.lastSelected = v;

prev = v;

var item = $(li).data('item');

$results.html("");

$input.val(v);

$input.change();

hideResultsNow();

if (options.onItemSelect) setTimeout(function () { options.onItemSelect(li ? $(li) : null, item) }, 1);

};

I see it firing in Firefox, Chrome, IE 7, etc., but never in IE 9 or IE 8...

Thanks,

-Michael

Changed May 21, 2012 06:57PM UTC by scottgonzalez comment:3

That code definitely does not exist in jQuery UI. Where did you get that from?

Changed May 21, 2012 07:36PM UTC by mdreyer comment:4

Replying to [comment:3 scott.gonzalez]:

That code definitely does not exist in jQuery UI. Where did you get that from?

The jquery.ui.autocomplete plugin.

Changed May 21, 2012 07:40PM UTC by scottgonzalez comment:5

Where did you download that from? That code has never existed in jQuery UI. It doesn't even resemble any code in jQuery UI.

Changed May 21, 2012 08:49PM UTC by mdreyer comment:6

Replying to [comment:5 scott.gonzalez]:

Where did you download that from? That code has never existed in jQuery UI. It doesn't even resemble any code in jQuery UI.

Really? I'll have to check with our other developers to see where this came from then. Thanks for your timely responses, I'll respond back to this post if I learn anything interesting about the origins of this code...

Thanks again,

-Michael