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

This commit is contained in:
Felix Nagel 2013-10-30 21:36:03 +01:00
parent 11186cc10a
commit a6c5f58d82

View File

@ -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 );
}
}