We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3e4b24 commit 027d8d4Copy full SHA for 027d8d4
tests/unit/selectmenu/selectmenu_events.js
@@ -49,7 +49,7 @@ test( "close", function () {
49
this.element.selectmenu( "open" ).selectmenu( "close" );
50
51
this.element.selectmenu( "open" );
52
- $( "body" ).trigger( "click" );
+ $( "body" ).trigger( "mousedown" );
53
});
54
55
ui/jquery.ui.selectmenu.js
@@ -321,7 +321,7 @@ $.widget( "ui.selectmenu", {
321
},
322
323
_documentClick: {
324
- click: function( event ) {
+ mousedown: function( event ) {
325
if ( this.isOpen && !$( event.target ).closest( "li.ui-state-disabled, li.ui-selectmenu-optgroup, #" + this.ids.button ).length ) {
326
this.close( event );
327
}
0 commit comments