github github
  • Home
  • Pricing and Signup
  • Training
  • Gist
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
    • 1,222
    • 303
  • Source
  • Commits
  • Network
  • Pull Requests (7)
  • Graphs
  • Tree: d380099

click here to add a description

click here to add a homepage

  • Switch Branches (9)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • spinner
    • tooltip
    • widget-super
  • Switch Tags (23)
    • 1.9m2
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.6
    • 1.8.5
    • 1.8.4
    • 1.8.3
    • 1.8.2
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…
Downloads

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Autocomplete: Properly handle non-item clicks inside the suggestion list. Fixes #6052 - Autocomplete suggestion list does not close properly.
scottgonzalez (author)
Mon Sep 20 06:27:32 -0700 2010
commit  d3800991162ed281dc81
tree    560241ab1b7f91964ada
parent  98a98a05d1a646a1e53b

Showing 1 changed file with 1 addition and 1 deletion.

M ui/jquery.ui.autocomplete.js 2 ••
Txt ui/jquery.ui.autocomplete.js
  • View file @ d380099
... ...
@@ -125,7 +125,7 @@ $.widget( "ui.autocomplete", {
125 125
         // so we have to track the next mousedown and close the menu if
126 126
         // the user clicks somewhere outside of the autocomplete
127 127
         var menuElement = self.menu.element[ 0 ];
128  
-        if ( event.target === menuElement ) {
  128
+        if ( !$( event.target ).closest( ".ui-menu-item" ).length ) {
129 129
           setTimeout(function() {
130 130
             $( document ).one( 'mousedown', function( event ) {
131 131
               if ( event.target !== self.element[ 0 ] &&

0 notes on commit d380099

Please log in to comment.
Dedicated Server Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
  • Blog
  • Support
  • Training
  • Job Board
  • Shop
  • Contact
  • API
  • Status
  • © 2010 GitHub Inc. All rights reserved.
  • Terms of Service
  • Privacy
  • Security
  • English
  • Deutsch
  • Français
  • 日本語
  • Português (BR)
  • Русский
  • 中文
  • See all available languages

Your current locale selection: English. Choose another?

  • English
  • Afrikaans
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Русский
  • Српски
  • Svenska
  • 中文

Keyboard Shortcuts

Site wide shortcuts

s
Focus site search
?
Bring up this help dialog

Commit list

j
Move selected down
k
Move selected up
t
Open tree
p
Open parent
c or o or enter
Open commit

Pull request list

j
Move selected down
k
Move selected up
o or enter
Open issue

Issues

j
Move selected down
k
Move selected up
x
Toggle select target
o or enter
Open issue
I
Mark selected as read
U
Mark selected as unread
e
Close selected
y
Remove selected from view
c
Create issue
l
Create label
i
Back to inbox
u
Back to issues
/
Focus issues search

Network Graph

← or h
Scroll left
→ or l
Scroll right
↑ or k
Scroll up
↓ or j
Scroll down
t
Toggle visibility of head labels
shift ← or shift h
Scroll all the way left
shift → or shift l
Scroll all the way right
shift ↑ or shift k
Scroll all the way up
shift ↓ or shift j
Scroll all the way down