-->

JQuery .popup(“open”) not working properly on iOS

2019-02-06 07:31发布

问题:

onClick event we call following

  1. $("#popupDialog").popup("open");
  2. $("#popupDialog").popup("open");
  3. $("#username").focus();

the popup appears and suddenly disappear.

We are facing this issue on iOS devices , since we updated ipad and iphone to ios 9 before iOS 9 it was OK.

Mobile Application Platform : JQuery Mobile 1.4.2 using Mobilefirst 6.3 studio

How can we fix this issue ?

Thanks,

回答1:

I added data-history="false" to the pop div and it is is working now



回答2:

Same problem. Seems that adding

$(document).bind("mobileinit",function(){
    $.mobile.hashListeningEnabled=false;
});

has an effect: the pop-up opens one time. But then after closing, the problem comes back.

Still looking into it...