@symbo.ls/link 2.11.16 → 2.11.36

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -28,10 +28,11 @@ export const RouterLink = {
28
28
  on: {
29
29
  click: (event, el, s, ctx) => {
30
30
  const { props } = el
31
+ const { href } = props
32
+ if (!href) return
31
33
  const { utils, routerOptions } = ctx
32
34
  const { router } = utils
33
35
  const root = el.__ref.__root
34
- const { href } = props
35
36
  const linkIsExternal = href.includes('http://') ||
36
37
  href.includes('https://') ||
37
38
  href.includes('mailto:') ||
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/link",
3
- "version": "2.11.16",
3
+ "version": "2.11.36",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "9d17c62d340b3ed3ecfba460d9f5656b324a5bbb",
6
+ "gitHead": "dcbcb0c3da036cfdb2fa14632c7dd32f8041af2a",
7
7
  "dependencies": {
8
8
  "@domql/router": "latest",
9
9
  "@symbo.ls/atoms": "latest"