Skip to content

Commit 001e588

Browse files
committed
Fix for issue jquery-archive#2017. Clear active link on vclick so there can be only one active link at a time.
1 parent e28ad6d commit 001e588

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

js/jquery.mobile.navigation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,7 @@
10741074
var link = findClosestLink( event.target );
10751075
if ( link ) {
10761076
if ( path.parseUrl( link.getAttribute( "href" ) || "#" ).hash !== "#" ) {
1077+
removeActiveLinkClass( true );
10771078
$activeClickedLink = $( link ).closest( ".ui-btn" ).not( ".ui-disabled" );
10781079
$activeClickedLink.addClass( $.mobile.activeBtnClass );
10791080
$( "." + $.mobile.activePageClass + " .ui-btn" ).not( link ).blur();

0 commit comments

Comments
 (0)