On 5/5/09 1:59 PM, "tudela" <rafael.tud...@gmail.com> wrote:
> > 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... there's an email thread in the archives of this list that shows that the two-clicks to show is intentional design. i have to admit i don't understand why it was designed this way. but when i made the same change that you explain above, it caused other UI problems with my app (sorry, i can't remember what) so i changed it back.