router-dom
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -125,2 +125,4 @@ import { listen } from "quicklink"; | ||
function registerAnchorEvent(anchor) { | ||
if (anchor.getAttribute("href")?.startsWith("http")) | ||
return; | ||
anchor.addEventListener("click", (e) => { | ||
@@ -127,0 +129,0 @@ e.preventDefault(); |
{ | ||
"name": "router-dom", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "A lightweight router for everyone", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -161,2 +161,3 @@ import { listen } from "quicklink"; | ||
function registerAnchorEvent(anchor: HTMLAnchorElement) { | ||
if (anchor.getAttribute("href")?.startsWith("http")) return; | ||
anchor.addEventListener("click", (e: MouseEvent) => { | ||
@@ -163,0 +164,0 @@ e.preventDefault(); |
18872
418