Skip to content

Commit cea6844

Browse files
committed
Selectmenu: removed working but illogical closest context
1 parent e299e9a commit cea6844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ $.widget( "ui.selectmenu", {
5959
// document click closes menu
6060
this._bind( document, {
6161
click: function( event ) {
62-
if ( this.isOpen && !$( event.target ).closest( "li.ui-state-disabled, li.ui-selectmenu-optgroup, #" + this.ids.button, this.buttonWrap ).length ) {
62+
if ( this.isOpen && !$( event.target ).closest( "li.ui-state-disabled, li.ui-selectmenu-optgroup, #" + this.ids.button ).length ) {
6363
this.close( event );
6464
}
6565
}

0 commit comments

Comments
 (0)