aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.selectmenu.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2013-10-29 20:54:16 +0100
committerFelix Nagel <info@felixnagel.com>2013-10-29 20:54:16 +0100
commit027d8d4cab27b89d3b1b137fbb8ce81c9fdafc54 (patch)
treebd5821989646ff12953bc12bc92c11767c387bc6 /ui/jquery.ui.selectmenu.js
parentf3e4b24485a34c89ee4032605d853c1b3e0a4e7e (diff)
downloadjquery-ui-027d8d4cab27b89d3b1b137fbb8ce81c9fdafc54.tar.gz
jquery-ui-027d8d4cab27b89d3b1b137fbb8ce81c9fdafc54.zip
Selectmenu: close menu on other element mousedown not on click
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r--ui/jquery.ui.selectmenu.js2
1 files changed, 1 insertions, 1 deletions
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 );
}