Permalink
Browse files

Selectmenu: removed working but illogical closest context

  • Loading branch information...
1 parent e299e9a commit cea684492d2de5fa00ad48f4b16aea816a26b2fb @fnagel fnagel committed Feb 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.selectmenu.js
@@ -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 );
}
}

0 comments on commit cea6844

Please sign in to comment.