Skip to main content

Bug Tracker

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 Songokoussj2 comment:1

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.

Changed January 05, 2009 09:00AM UTC by Songokoussj2 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 dmethvin comment:3

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 .