Popup adds ui-mobile-viewport-transitioning to <body> tag only in certain browsers

Popup adds ui-mobile-viewport-transitioning to <body> tag only in certain browsers

I am running JQM v1.3.2 and testing in Chrome 45 and Firefox 40.

I have a 1 page per HTML file configuration. Here is a sample of 1 of my pages:

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="utf-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6.     <meta name="viewport" content="width=device-width,initial-scale=1">
  7.     <title>Test</title>
  8.     <link rel="stylesheet" href="css/jquery.mobile/jqm-theme.css" />
  9.     <link rel="stylesheet" href="css/jquery.mobile/jquery.mobile.structure-1.3.2.css" />
  10.     <script src="js/jquery/jquery-1.11.2.js"></script>
  11.     <script src="js/test.js"></script>
  12.     <script src="js/jquery.mobile/jquery.mobile-1.3.2.js"></script>
  13. </head>
  14. <body>
  15.     <div data-role="page" id="testPage" data-theme="a">
  16.         <div data-role="header" data-position="fixed" data-tap-toggle="false">
  17.         </div>
  18.         <div data-role="content">
  19.         </div>
  20.         <div data-role="footer" data-position="fixed" data-tap-toggle="false" data-theme="b">
  21.         </div>
  22.         <div data-role="popup" data-id="popupTest" data-overlay-theme="b" data-transition="slidedown">
  23.             <div data-role="header" data-theme="c">
  24.                 <h1>Test</h1>
  25.             </div>
  26.             <div data-role="content">
  27.                 <div>popup content</div>
  28.                 <div class="ui-grid-solo buttons">
  29.                     <div class="ui-block-a">
  30.                         <a data-role="button" href="#" data-theme="c">Close</a>
  31.                     </div>
  32.                 </div>
  33.             </div>
  34.         </div>
  35.     </div>
  36. </body>
  37. </html>

I am capturing the "tap" event on a button in my page content and opening the popup with .popup('open');

This is where the browsers differ. In Chrome, opening the popup triggers the JQM function "transitionPages" which is on line #4039. This in turn calls "toggleViewportClass" on line #3654. This adds the class "ui-mobile-viewport-transitioning" to the <body> element to prevent scrolling. The problem is, when I close the popup, this class is not removed. So scrolling is permanently disabled.

In Firefox, this section of code never gets triggered. I have no idea why and would love some help.

Additionally, in Chrome, this section of code ONLY gets triggered if the test page is NOT the first loaded page. So if I start at index.html and transition to testpage.html, then open the popup, scrolling is broken. But if I just type the url directly to start at testpage.html, then open the popup, it behaves the same as Firefox.