round-core 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1450,6 +1450,9 @@ function Link(props = {}) {
|
|
|
1450
1450
|
const onClick = (e) => {
|
|
1451
1451
|
if (typeof props.onClick === "function") props.onClick(e);
|
|
1452
1452
|
if (e.defaultPrevented) return;
|
|
1453
|
+
if (props.target === "_blank") return;
|
|
1454
|
+
const strHref = String(href);
|
|
1455
|
+
if (strHref.includes("://") || strHref.startsWith("mailto:") || strHref.startsWith("tel:")) return;
|
|
1453
1456
|
if (!spa || reload) return;
|
|
1454
1457
|
if (e.button !== 0) return;
|
|
1455
1458
|
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
|