]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: do not follow anchor link when item is clicked
authorFelix Nagel <info@felixnagel.com>
Wed, 25 Sep 2013 20:27:03 +0000 (22:27 +0200)
committerFelix Nagel <info@felixnagel.com>
Wed, 25 Sep 2013 20:27:03 +0000 (22:27 +0200)
ui/jquery.ui.selectmenu.js

index 8e728958684cb5341b770ec918a88d6ddfee80f8..2a66ac6a3ab7607000be3e96283654773b2afb4c 100644 (file)
@@ -122,6 +122,7 @@ $.widget( "ui.selectmenu", {
                        select: function( event, ui ) {
                                var item = ui.item.data( "ui-selectmenu-item" );
 
+                               event.preventDefault();                         
                                that._select( item, event );
                        },
                        focus: function( event, ui ) {