Selectmenu: do not follow anchor link when item is clicked

This commit is contained in:
Felix Nagel 2013-09-25 22:27:03 +02:00
parent fd776f4224
commit 12dba998f1

View File

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