@symbo.ls/router 2.32.2 → 2.32.5
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/index.js +2 -2
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -55,7 +55,8 @@ let lastElement = {}
|
|
|
55
55
|
|
|
56
56
|
// eslint-disable-next-line default-param-last
|
|
57
57
|
export async function router(path = '/', el, state = {}, passedOptions = {}) {
|
|
58
|
-
const
|
|
58
|
+
const rootElem = this && this.getRoot()
|
|
59
|
+
const element = el && el.routes ? el : rootElem
|
|
59
60
|
const options = merge(passedOptions, defaultOptions)
|
|
60
61
|
lastLevel = options.level
|
|
61
62
|
|
|
@@ -67,7 +68,6 @@ export async function router(path = '/', el, state = {}, passedOptions = {}) {
|
|
|
67
68
|
}
|
|
68
69
|
element.call('closeModal')
|
|
69
70
|
if (options.event) options.event.preventDefault()
|
|
70
|
-
return
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
const urlObj = new options.window.URL(options.window.location.origin + path)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/router",
|
|
3
|
-
"version": "2.32.
|
|
3
|
+
"version": "2.32.5",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"vpatch": "npm version patch && npm publish --access public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@domql/utils": "^2.32.
|
|
11
|
+
"@domql/utils": "^2.32.5"
|
|
12
12
|
},
|
|
13
|
-
"gitHead": "
|
|
13
|
+
"gitHead": "037257037dfb4f48d5f6ca381ffa2aea8f753669",
|
|
14
14
|
"source": "index.js"
|
|
15
15
|
}
|