Ticket #4414 (closed enhancement: invalid)
[autocomplete] - Enhancement using mouseleave
| Reported by: | brandonbk | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.4 |
| Component: | plugin | Version: | 1.3.2 |
| Keywords: | autocomplete, mouseleave, mouseout | Cc: | |
| Blocking: | Blocked by: |
Description
Suggested enhancement: Add mouseleave functionality to the autocompleter as follows:
list = $("<ul/>").appendTo(element).mouseleave( function(event) {
if (target(event).nodeName && target(event).nodeName.toUpperCase() == 'LI') {
active = $("li", list).removeClass(CLASSES.ACTIVE).index(target(event)); } })
This resolves an issue where a user mouses over the autocomplete list (without clicking), but then tries to use the Enter key on the input box. Currently, it incorrectly chooses the selected autocomplete item, even though it was not clicked. Excellent plug-in btw!
Change History
comment:2 Changed 4 years ago by dmethvin
- Status changed from new to closed
- Resolution set to invalid
This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker, http://dev.jqueryui.com .
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

The mousemove event would'nt be better? I suggest another thing, for me, there is two way to fill the textbox whith a selected item:
But actually, by pressing RETURN key, the plugin fill the textbox with the highlighted item witch it highlighted by mouseover.
I patch the code in the switch/case on the key pressed by:
The code ( ![...] means unchanged code ):
I'm sorry for my english, i'm just a poor french developper who really like this plugin...