Side navigation
#3773 closed bug (invalid)
Opened January 03, 2009 11:13AM UTC
Closed October 13, 2009 12:32AM UTC
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:
1. Make one mousedown on an item of the result list (do not mouseup)
2. Move the mouse out of the result list
3. 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.
Attachments (0)
Change History (3)
Changed January 04, 2009 10:49AM UTC by comment:1
Changed January 05, 2009 09:00AM UTC by comment:2
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.
Changed October 13, 2009 12:32AM UTC by comment:3
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.