Closing jQuery Mobile new popup cause page to refresh uselessly

前端 未结 5 760
爱一瞬间的悲伤
爱一瞬间的悲伤 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:45

    Found this post while having a similar problem on IE11 with jQuery Mobile 1.4.5

    I found that I could prevent the "reload" when closing the popup by declaring the popup with the data-history="false" attribute in my HTML.

    Ex:

    ...

提交回复
热议问题