Skip to content
Permalink
Browse files

Selectmenu: simplify and fix document click event

  • Loading branch information
fnagel committed Nov 13, 2013
1 parent ab2219b commit 51b04297133707e7839757bc6471e576fa370d17
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.selectmenu.js
@@ -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 );
}
}

0 comments on commit 51b0429

Please sign in to comment.
You can’t perform that action at this time.