From c0d82e46b0051f7dd663f11eb7a8fec056c67ea5 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Tue, 13 Sep 2011 01:03:20 +0200 Subject: [PATCH] fixed: toggle dropdown when icon is clicked, related to #147, thx to @brainTrain, see #159 --- ui/jquery.ui.selectmenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5