JQuery .popup("open") not working properly on iOS 9 device
Asked Answered
H

2

13

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,

Heavenly answered 17/9, 2015 at 8:45 Comment(2)
This is a duplicate of #15010107Savoury
@Savoury I don't think so, cos I didn't have this issue prior to iOS 9. this issue is caused by iOS 9 update compared to your suggested duplicate, although the solution is the sameBehemoth
T
17

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

Tennant answered 17/9, 2015 at 13:9 Comment(2)
Thank you very much, very helpful, fixed my problems immediately!Fox
data-history="false" fixes it for me too! Thank You! This should be the accepted answer!Savoury
R
1

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

Reinold answered 17/9, 2015 at 8:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.