diff --git a/js/widgets/popup.js b/js/widgets/popup.js index 46744cf94fb..cecd45dff84 100644 --- a/js/widgets/popup.js +++ b/js/widgets/popup.js @@ -786,6 +786,11 @@ define( [ "jquery", //remove after delay setTimeout( function() { + // Check if we are in a listview + var $parent = $link.parent().parent(); + if ($parent.hasClass("ui-li")) { + $link = $parent.parent(); + } $link.removeClass( $.mobile.activeBtnClass ); }, 300 ); };