Hi, I was using the autocomplete and found a bug in the click
function, follow the code:

Actual code:
// In this code you need to click twice in the input element to show
the results.
.click(function() {
    // show select when clicking in a focused field
    if ( hasFocus++ > 1 && !select.visible() ) {
        onChange(0, true);
}

Fixed code:
// I just added ">=" instead of ">", so you only need one click to
show the results
.click(function() {
    // show select when clicking in a focused field
    if ( hasFocus++ >= 1 && !select.visible() ) {
        onChange(0, true);
}

That's it...

Reply via email to