diff --git a/tests/unit/selectmenu/selectmenu_events.js b/tests/unit/selectmenu/selectmenu_events.js index 182c0cd1b..2c10b4c87 100644 --- a/tests/unit/selectmenu/selectmenu_events.js +++ b/tests/unit/selectmenu/selectmenu_events.js @@ -49,7 +49,7 @@ test( "close", function () { this.element.selectmenu( "open" ).selectmenu( "close" ); this.element.selectmenu( "open" ); - $( "body" ).trigger( "click" ); + $( "body" ).trigger( "mousedown" ); }); diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 69f863108..5c13a1619 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -321,7 +321,7 @@ $.widget( "ui.selectmenu", { }, _documentClick: { - click: function( event ) { + mousedown: function( event ) { if ( this.isOpen && !$( event.target ).closest( "li.ui-state-disabled, li.ui-selectmenu-optgroup, #" + this.ids.button ).length ) { this.close( event ); }