Re: Autocomplete EITHER highlight arrow key or mouseover?
- Forget it. It was a mistake on my part. I had explicitly declared
this.oAutoComp.prehighlightClassName = "yui-ac-prehighlight", which
caused both the mouseover and arrow key highlights to appear.
When I don't declare prehighlightClassName, now either mouseover or
arrow key highlight appears.
> First off, hats off to the developers who made this autocomplete one
> of the best ones in the market.
> My question is, how do you highlight exactly ONE result list item when
> you use either the arrow key OR hovering mouse over an item?
> With yui-ac-prehighlight and yui-ac-highlight events, I always get two
> highlighted items when I use the mouse to select anything other than
> the first item (since the first item is already selected by
> yui-ac-highlight as default).
> In other words, I want to "switch off" yui-ac-highlight when I use the
> mouse to hover over any item that is not the first item.
> Anybody knows how to do it?