aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2013-10-30 21:36:03 +0100
committerFelix Nagel <info@felixnagel.com>2013-10-30 21:36:03 +0100
commita6c5f58d8243b39c6cd57b76ffb0776adfcc8b1c (patch)
tree3fc832fbfa9c57d882e5471a5f13ff653a8aa2e6
parent11186cc10a3decf8fcc236537edc8ca2a61bd176 (diff)
downloadjquery-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.js2
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 );
}
}