no default prevention is needed in native mode, as button is a div rather than an anchor. Also bound to change to remove the active class, which makes the native menu version's button state behave better in Opera Mobile 10.1

This commit is contained in:
scottjehl 2011-02-02 00:25:12 -05:00
parent 4023e1bf68
commit 4a6ec54472

View file

@ -168,13 +168,11 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
//add active class to button
button.addClass( $.mobile.activeBtnClass );
//ensure button isn't clicked
e.stopPropagation();
})
.bind( "focus mouseover", function(){
button.trigger( "mouseover" );
})
.bind( "blur mouseout", function(){
.bind( "change blur mouseout", function(){
button
.trigger( "mouseout" )
.removeClass( $.mobile.activeBtnClass );