Skip to content
Permalink
Browse files

Selectmenu: follow-up to close menu on other element mousedown not on…

… click
  • Loading branch information
fnagel committed Oct 30, 2013
1 parent 11186cc commit a6c5f58d8243b39c6cd57b76ffb0776adfcc8b1c
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, #" + this.ids.button ).length ) {
if ( this.isOpen && !$( event.target ).closest( "li.ui-state-disabled, li.ui-selectmenu-optgroup, li.ui-menu-item, #" + this.ids.button ).length ) {
this.close( event );
}
}

0 comments on commit a6c5f58

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