We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e65043c commit 2fd705cCopy full SHA for 2fd705c
1 file changed
ui/jquery.ui.selectmenu.js
@@ -159,7 +159,7 @@ $.widget("ui.selectmenu", {
159
// document click closes menu
160
$( document ).bind( "mousedown.selectmenu-" + this.ids[ 0 ], function( event ) {
161
//check if open and if the clicket targes parent is the same
162
- if ( self.isOpen && self.ids[ 1 ] != event.target.offsetParent.id ) {
+ if ( self.isOpen && !event.target.offsetParent ) {
163
self.close( event );
164
}
165
});
0 commit comments