IOS Safari window.alert, window.confirm not working after onpopstate triggered

旧巷老猫 提交于 2020-07-09 08:54:47

问题


After onpopstate event triggered, window.alert, window.confirm etc not working.

This is related console logs Image

And this is what I tested.

  • First I registered popstate event.
  • And tried window.alert('abc'); // It works.
  • Tried history.back() or click back button, then popstate event triggered.
  • And tried window.alert('abc'); // Not working.

I found the same issue, there is no answers left, so I post a question once again.
Alert, confirm, and prompt not working after using History API on Safari, iOS

  • I can't do location.reload inside the onpopstate event because of some issues.

Is there any ios bug report?
or.. Does anyone know why this happenes or how to fix it?

来源:https://stackoverflow.com/questions/58022927/ios-safari-window-alert-window-confirm-not-working-after-onpopstate-triggered

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!