From 51b04297133707e7839757bc6471e576fa370d17 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Wed, 13 Nov 2013 19:55:31 +0100 Subject: [PATCH] Selectmenu: simplify and fix document click event --- 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 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 ); } } -- 2.39.5