Skip to content

Commit

Permalink
Selectmenu: removed working but illogical closest context
Browse files Browse the repository at this point in the history
  • Loading branch information
fnagel committed Feb 26, 2012
1 parent e299e9a commit cea6844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.selectmenu.js
Expand Up @@ -59,7 +59,7 @@ $.widget( "ui.selectmenu", {
// document click closes menu
this._bind( document, {
click: function( event ) {
if ( this.isOpen && !$( event.target ).closest( "li.ui-state-disabled, li.ui-selectmenu-optgroup, #" + this.ids.button, this.buttonWrap ).length ) {
if ( this.isOpen && !$( event.target ).closest( "li.ui-state-disabled, li.ui-selectmenu-optgroup, #" + this.ids.button ).length ) {
this.close( event );
}
}
Expand Down

0 comments on commit cea6844

Please sign in to comment.