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

心不动则不痛 提交于 2019-11-30 13:52:07

问题


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



来源:https://stackoverflow.com/questions/32626073/jquery-popupopen-not-working-properly-on-ios-9-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!