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

Commit 8e8b83a

Browse files
author
Gabriel Schulhof
committed
Navigation: vclick handler: Do not avoid removing active class off button that already has it
This is a revert of 35eea35 and makes our faulty handling of the double vclick on iOS look even worse, but the correct solution for iOS is not to fix the button active-indication, but to fix the double-vclick-but-no-click problem - see #5149
1 parent 64a8d97 commit 8e8b83a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ define( [
13841384
$btn = $btn.closest( ".ui-btn" );
13851385
}
13861386

1387-
if ( $btn.length > 0 && !( $btn.hasClass( $.mobile.activeBtnClass ) || $btn.hasClass( "ui-disabled" ) ) ) {
1387+
if ( $btn.length > 0 && !$btn.hasClass( "ui-disabled" ) ) {
13881388
removeActiveLinkClass( true );
13891389
$activeClickedLink = $btn;
13901390
$activeClickedLink.addClass( $.mobile.activeBtnClass );

0 commit comments

Comments
 (0)