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

2019-02-06 07:00发布

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,

2条回答
We Are One
2楼-- · 2019-02-06 07:40

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

查看更多
【Aperson】
3楼-- · 2019-02-06 07:53

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...

查看更多
登录 后发表回答