Skip to content

Commit 35ee730

Browse files
Merge pull request jquery-archive#5588 from jquery/fix-5583
Panel: Make sure active state is applied to and removed from buttons in header too.
2 parents e471b77 + 975200e commit 35ee730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/widgets/panel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ $.widget( "mobile.panel", $.mobile.widget, {
222222
if ( this.href.split( "#" )[ 1 ] === self._panelID && self._panelID !== undefined ) {
223223
e.preventDefault();
224224
var $link = $( this );
225-
if ( $link.is( ":jqmData(role='button')" ) ) {
225+
if ( ! $link.hasClass( "ui-link" ) ) {
226226
$link.addClass( $.mobile.activeBtnClass );
227227
self.element.one( "panelopen panelclose", function() {
228228
$link.removeClass( $.mobile.activeBtnClass );

0 commit comments

Comments
 (0)