Bug Tracker

Opened 14 years ago

Closed 13 years ago

#3773 closed bug (invalid)


Reported by: Songokoussj2 Owned by:
Priority: major Milestone: 1.3
Component: unfiled Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:


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.

Change History (3)

comment:1 Changed 14 years ago by Songokoussj2

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.

comment:2 Changed 14 years ago by Songokoussj2

Fixed this bug using the following code:

$('body').mouseup(function() {
  if (config.mouseDownOnSelect) {
    config.mouseDownOnSelect = false;

Tested on latest safari, firefox, IE, opera and chrome.

comment:3 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

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 .

Note: See TracTickets for help on using tickets.