diff options
author | Felix Nagel <info@felixnagel.com> | 2013-10-30 21:36:03 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-10-30 21:36:03 +0100 |
commit | a6c5f58d8243b39c6cd57b76ffb0776adfcc8b1c (patch) | |
tree | 3fc832fbfa9c57d882e5471a5f13ff653a8aa2e6 | |
parent | 11186cc10a3decf8fcc236537edc8ca2a61bd176 (diff) | |
download | jquery-ui-a6c5f58d8243b39c6cd57b76ffb0776adfcc8b1c.tar.gz jquery-ui-a6c5f58d8243b39c6cd57b76ffb0776adfcc8b1c.zip |
Selectmenu: follow-up to close menu on other element mousedown not on click
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 45d379240..aa4a59aa7 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -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 ); } } |