Issue with popstate event on Safari Version 12.0 (13606.2.11)

Hi,


I'm having a problem using window.onpopstate event. i'm using it to handle the back from browser, but under some circustances the event fires without being triggered by any button, just after being initialized.


Let me be more clear:
Page 1: Contains the onpopstate event handler
Page 2: Page after the page 1.


When i come from page 2 to page 1, after being initialized, the popstate event is triggered without any other button click.


Is this a bug from Safari? (Happens only on Safari)

Posted on Oct 2, 2018 6:11 AM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Issue with popstate event on Safari Version 12.0 (13606.2.11)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.