Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#8341 closed bug (notabug)

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

Change History (6)

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

Resolution: invalid
Status: newclosed

There's no such method as selectItem.

comment:2 in reply to:  1 Changed 11 years ago by mdreyer

Replying to 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

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

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

comment:4 in reply to:  3 Changed 11 years ago by mdreyer

Replying to scott.gonzalez:

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

The jquery.ui.autocomplete plugin.

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

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

comment:6 in reply to:  5 Changed 11 years ago by mdreyer

Replying to 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

Note: See TracTickets for help on using tickets.