mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-21 14:44:44 +00:00
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:
parent
4023e1bf68
commit
4a6ec54472
1 changed files with 1 additions and 3 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue