Work/iOS

iOS9에서 JQuery.popup 이 열리자마자 닫히는 경우 해결법

kevin. 2015. 10. 13. 10:25

$('#popupDialogEmo').popup('open');

$('#popupDialogEmo').popup('close');


이걸로 팝업 data-role="popup" div를 잘 열고 닫고 쓰고 있었는데 iOS9가 되면서 팝업이 열리자 마자 닫히고 다시 팝업을 열고 close를 하면 새로고침 되는 현상이 발생.

stackoverflow에서 완전 간단한 해결법을 찾았다.


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


팝업 div 에 data-history="false" 만 넣어주면 끝.


default: true

Sets whether to alter the url when a popup is open to support the back button. Also exposed as a data attribute: data-history="false"

$( ".selector" ).popup({ history: false });


먼 소린지 모르겠음.