Skip to content

Commit 1dd6608

Browse files
author
scottjehl
committed
remove active button state on buttons that close dialogs. Fixes jquery-archive#1839
1 parent 0cff633 commit 1dd6608

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/jquery.mobile.dialog.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ $.widget( "mobile.dialog", $.mobile.widget, {
4343
.attr( "data-" + $.mobile.ns + "transition", ( active.transition || $.mobile.defaultDialogTransition ) )
4444
.attr( "data-" + $.mobile.ns + "direction", "reverse" );
4545
}
46+
})
47+
.bind( "pagehide", function() {
48+
$( this ).find( "." + $.mobile.activeBtnClass ).removeClass( $.mobile.activeBtnClass );
4649
});
4750
},
4851

0 commit comments

Comments
 (0)