github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 249
    • 27
  • Source
  • Commits
  • Network (27)
  • Graphs
  • Tree: c61bd8e

click here to add a description

click here to add a homepage

  • Switch Branches (4)
    • bind
    • master
    • panel
    • tooltip
  • Switch Tags (15)
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Menu: Don't trigger select if a click occurs outside of a menu item.

Fixes #5376 - Menu plugin fires select when border is clicked.
Scott González (author)
Sat Mar 20 12:09:46 -0700 2010
commit  c61bd8ec67d9a863a00ae9d188993680f83186b0
tree    d35896b5ce4d4698f7bada8601f06eb7f646af14
parent  e70743cdcb5cc4c87f123d48278e78d67865865f
M ui/jquery.ui.autocomplete.js 3 •••
Txt ui/jquery.ui.autocomplete.js
  • View file @ c61bd8e
... ...
@@ -335,6 +335,9 @@ $.widget("ui.menu", {
335 335
         "aria-activedescendant": "ui-active-menuitem"
336 336
       })
337 337
       .click(function(e) {
  338
+        if ( !$( e.target ).closest( ".ui-menu-item" ).length ) {
  339
+          return;
  340
+        }
338 341
         // temporary
339 342
         e.preventDefault();
340 343
         self.select();

0 notes on commit c61bd8e

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server