@symbo.ls/link 2.10.259 → 2.10.266

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 +4 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -28,15 +28,16 @@ export const RouterLink = {
28
28
  on: {
29
29
  click: (event, el, s, ctx) => {
30
30
  const { props } = el
31
- const { router } = ctx.utils
31
+ const { utils, routerOptions } = ctx
32
+ const { router } = utils
32
33
  const root = el.__ref.__root
33
34
  const { href } = props
34
35
  const firstThree = href[0] + href[1] + href[2]
35
- const routerOptions = props.routerOptions || {
36
+ const options = props.routerOptions || routerOptions || {
36
37
  scrollToOptions: { behaviour: 'instant' }
37
38
  }
38
39
  if (href && firstThree !== 'htt' && firstThree !== 'ske') {
39
- (router || defaultRouter)(root, href, {}, routerOptions)
40
+ (router || defaultRouter)(root, href, {}, options)
40
41
  event.preventDefault()
41
42
  }
42
43
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/link",
3
- "version": "2.10.259",
3
+ "version": "2.10.266",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "c454826279438617c85a5f8d8e7b3a6938d94dea",
6
+ "gitHead": "e153db0a5e05e4655b5093d694b09fc1e8c4ec0b",
7
7
  "dependencies": {
8
8
  "@domql/router": "latest",
9
9
  "@symbo.ls/atoms": "latest"