aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2013-11-13 19:55:31 +0100
committerFelix Nagel <info@felixnagel.com>2013-11-13 19:55:31 +0100
commit51b04297133707e7839757bc6471e576fa370d17 (patch)
tree3c9035c1c50f27374fa2e5a4429b5a7040e41c96 /ui
parentab2219b6ac3dbab58885a0bd2aaac01c4bcc1c2f (diff)
downloadjquery-ui-51b04297133707e7839757bc6471e576fa370d17.tar.gz
jquery-ui-51b04297133707e7839757bc6471e576fa370d17.zip
Selectmenu: simplify and fix document click event
Diffstat (limited to 'ui')
-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 aa4a59aa7..4ba6e1785 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, li.ui-menu-item, #" + this.ids.button ).length ) {
+ if ( this.isOpen && !$( event.target ).closest( ".ui-selectmenu-menu, #" + this.ids.button ).length ) {
this.close( event );
}
}