]> source.dussan.org Git - jquery-ui.git/commitdiff
fixed: toggle dropdown when icon is clicked, related to #147, thx to @brainTrain...
authorFelix Nagel <info@felixnagel.com>
Mon, 12 Sep 2011 23:03:20 +0000 (01:03 +0200)
committerFelix Nagel <info@felixnagel.com>
Mon, 12 Sep 2011 23:03:20 +0000 (01:03 +0200)
ui/jquery.ui.selectmenu.js

index 87652f9a7668cb33e44a19c5d1a9657a8e869bd1..d61d75f96ab06a0f18ae1db935ce72a82fd1a733 100644 (file)
@@ -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);