mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Selectmenu: follow-up to close menu on other element mousedown not on click
This commit is contained in:
parent
11186cc10a
commit
a6c5f58d82
2
ui/jquery.ui.selectmenu.js
vendored
2
ui/jquery.ui.selectmenu.js
vendored
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user