Skip to content

Commit

Permalink
Selectmenu: simplify and fix document click event
Browse files Browse the repository at this point in the history
  • Loading branch information
fnagel committed Nov 13, 2013
1 parent ab2219b commit 51b0429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.selectmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
Expand Down

0 comments on commit 51b0429

Please sign in to comment.