Skip to content

Commit a6c5f58

Browse files
committed
Selectmenu: follow-up to close menu on other element mousedown not on click
1 parent 11186cc commit a6c5f58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ $.widget( "ui.selectmenu", {
327327

328328
_documentClick: {
329329
mousedown: function( event ) {
330-
if ( this.isOpen && !$( event.target ).closest( "li.ui-state-disabled, li.ui-selectmenu-optgroup, #" + this.ids.button ).length ) {
330+
if ( this.isOpen && !$( event.target ).closest( "li.ui-state-disabled, li.ui-selectmenu-optgroup, li.ui-menu-item, #" + this.ids.button ).length ) {
331331
this.close( event );
332332
}
333333
}

0 commit comments

Comments
 (0)