I found a solution on 
http://stackoverflow.com/questions/609362/jquery-autocomplete-plugin-not-focusing-the-next-clicked-field
 .

"The fix is:

Comment out lines 308-310 of the unpacked version:

//if (wasVisible)    // position cursor at end of input field    
//$.Autocompleter.Selection(input, input.value.length, input.value.length);And 
from Luca's post, comment out line 510:

//input.focus();These both need to be commented out to make it work properly."

It works!!!

-----Ursprüngliche Nachricht-----
Von: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] Im Auftrag 
von Tom Worster
Gesendet: Donnerstag, 4. Juni 2009 03:14
An: jquery-en@googlegroups.com; Wende, Alexander
Betreff: [jQuery] Re: [autocomplete] - Problem closing autocomplete


On 6/3/09 10:49 AM, "AlexKV" <alexander.we...@kv-rlp.de> wrote:

> If the Autocompleter ist active and I click somewhere else on the page
> to close the autocompleter, the autocompleter inputbox will be
> focused. Can I change this behavior? I want that the autocompleter
> will be closed if I click somewhere and that the clicked element will
> be focused.
> The examples on the Demopages have the same behavior.

it's annoying, isn't it? i tried to sort it out and failed. if you find a
solution, please post it here.



Reply via email to