Opened 14 years ago
Closed 13 years ago
#3773 closed bug (invalid)
autocomplete
Reported by: | Songokoussj2 | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | unfiled | Version: | 1.2.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The following procedure results in not beeing able to hide the result list:
- Make one mousedown on an item of the result list (do not mouseup)
- Move the mouse out of the result list
- Make one mouseup anywhere else than the result list
Now you can click out of the input field but the result list will not hide cause config.mouseDownOnSelect is set to true via the mousedown event hanlder (line 585). An obvious solution would be to set config.mouseDownOnSelect to false on any mouseup and not only on the mouseup bound to the result list but this would result in hiding the list directly after performing the procedure above which would be an incorrect behavior.
Change History (3)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Fixed this bug using the following code:
$('body').mouseup(function() { if (config.mouseDownOnSelect) { input.focus(); config.mouseDownOnSelect = false; } });
Tested on latest safari, firefox, IE, opera and chrome.
comment:3 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
This is not a jQuery core bug. Please use the jQuery forums or contact the author via the method they request. For jQuery UI plugins, please file a bug on http://dev.jqueryui.com .
Setting config.mouseDownOnSelect to false on any mouseup would result in an incorrect behavior cause the result list would disappear immediately but it is acceptable.