Reputation: 83
After onpopstate event triggered, window.alert, window.confirm etc not working.
This is related console logs Image
And this is what I tested.
popstate
event.window.alert('abc');
// It works.history.back()
or click back button, then popstate
event triggered.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
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?
Upvotes: 6
Views: 3227
Reputation: 83
I couldn't solve this issue. I had to change window.alert to some custom layer.
Upvotes: 1