Closing jQuery Mobile new popup cause page to refresh uselessly

前端 未结 5 739
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-04 22:47

I\'m using the new jqm popup with the 1.2.0 alpha release and my problem is that my page from which I call the popup is refreshed uselessly when closing the popup using esc

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-04 23:44

    I had a similar problem and I fixed it with using history: false:

    $("#selector").popup({ transition: 'slidedown', history: false, overlay: true });
    $("#selector").popup("open");
    

提交回复
热议问题