Opened 14 years ago
Closed 13 years ago
#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: | |
Blocked by: | Blocking: |
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 (2)
comment:1 Changed 14 years ago by
comment:2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
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 .
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...