Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Fixes: #1181 - navbar link stays active when using changePage() #4579

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions js/widgets/navbar.js
Expand Up @@ -41,6 +41,10 @@ $.widget( "mobile.navbar", $.mobile.widget, {
if( !$(event.target).hasClass("ui-disabled") ) {
$navbtns.removeClass( $.mobile.activeBtnClass );
$( this ).addClass( $.mobile.activeBtnClass );
var activeNavbtn = $( this );
$( document ).one( "pagechange", function( event ) {
activeNavbtn.removeClass( $.mobile.activeBtnClass );
});
}
});

Expand Down