From: Felix Nagel Date: Mon, 12 Sep 2011 23:03:20 +0000 (+0200) Subject: fixed: toggle dropdown when icon is clicked, related to #147, thx to @brainTrain... X-Git-Tag: selectmenu_v1.2.0~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c0d82e46b0051f7dd663f11eb7a8fec056c67ea5;p=jquery-ui.git fixed: toggle dropdown when icon is clicked, related to #147, thx to @brainTrain, see #159 --- diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 87652f9a7..d61d75f96 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -593,7 +593,7 @@ $.widget("ui.selectmenu", { }, _toggle: function(event, retainFocus) { - if ( this.list.is('.' + this.widgetBaseClass + '-open') ) { + if ( this.list.parent().is('.' + this.widgetBaseClass + '-open') ) { this.close(event, retainFocus); } else { this.open(event);