We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c38ac3b commit f57b63bCopy full SHA for f57b63b
src/reactpy_router/static/link.js
@@ -1,5 +1,9 @@
1
-document.querySelector(".UUID").addEventListener("click", (event) => {
2
- event.preventDefault();
3
- let to = event.target.getAttribute("href");
4
- window.history.pushState({}, to, new URL(to, window.location));
5
-});
+document.querySelector(".UUID").addEventListener(
+ "click",
+ (event) => {
+ event.preventDefault();
+ let to = event.target.getAttribute("href");
6
+ window.history.pushState({}, to, new URL(to, window.location));
7
+ },
8
+ { once: true },
9
+);
0 commit comments