]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: follow-up to close menu on other element mousedown not on click
authorFelix Nagel <info@felixnagel.com>
Wed, 30 Oct 2013 20:36:03 +0000 (21:36 +0100)
committerFelix Nagel <info@felixnagel.com>
Wed, 30 Oct 2013 20:36:03 +0000 (21:36 +0100)
ui/jquery.ui.selectmenu.js

index 45d3792403286655848d3389de6c621679a1f5b7..aa4a59aa7a739c8fcf507825446fef7729da4315 100644 (file)
@@ -327,7 +327,7 @@ $.widget( "ui.selectmenu", {
 
        _documentClick: {
                mousedown: function( event ) {
-                       if ( this.isOpen && !$( event.target ).closest( "li.ui-state-disabled, li.ui-selectmenu-optgroup, #" + this.ids.button ).length ) {
+                       if ( this.isOpen && !$( event.target ).closest( "li.ui-state-disabled, li.ui-selectmenu-optgroup, li.ui-menu-item, #" + this.ids.button ).length ) {
                                this.close( event );
                        }
                }