New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
event.preventDefault in react-router-dom is not working in Chrome and Firefox #6592
Comments
Without an example of this, it's basically impossible to check if it's a legitimate bug. We check for default being prevented, so it's a specific case we're handling. I tend to think it's something specific to your app, not the library. |
thanks for the reply, found the issue over the weekend, it was some analytic scripts from the google tag manager that integrated in the page causing the issue |
@kambing86 Can you elaborate a little more about what caused the issue? I am experiencing the same issue and tracked it down to GTM, but I can't figure out what exactly is causing the issue and how to fix it. thanks! |
So for anybody stumbling on the same issue in the future: React Router didn't work for me in cases where Google Tag Manager fired a "click" event for internal links. I am not sure what exactly is causing the issue, but I fixed it by removing these events from GTM |
@thedivac sorry for late reply, the GTM actually tracked and intercepted all the for my case, one of the script throws error, and |
@timdorr not sure should |
@kambing86 This should be fixed via #6711 in the next release. |
found this issue recently, the a tag generated by
Link
component will sometime refresh the whole page when the link is clicked, and it's not 100% happened, sometimes it works as expected, but sometimes it refreshes the whole pageI think this issue most likely is related to browser, but just want to know anyone facing the same issue, and if so, is there anyway to solve it?
The text was updated successfully, but these errors were encountered: