diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 4191ecf4b35..440b01dae22 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -1259,8 +1259,8 @@ define( [ if ( path.parseUrl( link.getAttribute( "href" ) || "#" ).hash !== "#" ) { removeActiveLinkClass( true ); $activeClickedLink = $( link ).closest( ".ui-btn" ).not( ".ui-disabled" ); + $( "." + $.mobile.activePageClass + " ." + $.mobile.activeBtnClass ).blur(); $activeClickedLink.addClass( $.mobile.activeBtnClass ); - $( "." + $.mobile.activePageClass + " .ui-btn" ).not( link ).blur(); // By caching the href value to data and switching the href to a #, we can avoid address bar showing in iOS. The click handler resets the href during its initial steps if this data is present $( link )