I have a strange problem with Phonegap on iOS platform. On Android, "popup" works correctly. I have this code:
<button data-rel="popup" data-position-to="window" data-transition="pop" id="prueba23">Botón</button>
<div data-role="popup" id="popupDialog">
<div data-role="header" data-theme="a" style="top:-21px">
<h1>Delete Page?</h1>
</div>
<div role="main">
<h3 class="ui-title">Are you sure you want to delete this page?</h3>
<p>This action cannot be undone.</p>
</div>
<div data-role="footer">
<div data-role="navbar">
<ul>
<li><a href="#test-ries" data-role="button" data-icon="info" data-iconpos="notext">Volver</a></li>
</ul>
</div>
</div>
</div>
<script>
$('#prueba23').on('tap', function(e){
e.preventDefault();
$('#popupDialog').popup('open');
});
</script>
and on iOS platform, at first time that I tap button, popup's appears and dissapears after a second. On second (and third, fourth,...) time, popup works correctly. Only has a strange behaviour at first time that I tap the button.
Here you have an example video that I record: https://www.youtube.com/watch?v=HTkrUr1vpsM&feature=youtu.be Thank you.