@symbo.ls/router 2.29.69 → 2.29.71

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 +3 -3
package/index.js CHANGED
@@ -54,7 +54,7 @@ const defaultOptions = {
54
54
  let lastElement = {}
55
55
 
56
56
  // eslint-disable-next-line default-param-last
57
- export async function router (path = '/', el, state = {}, passedOptions = {}) {
57
+ export async function router(path = '/', el, state = {}, passedOptions = {}) {
58
58
  const element = el || (this && this.getRoot())
59
59
  const options = merge(passedOptions, defaultOptions)
60
60
  lastLevel = options.level
@@ -141,6 +141,7 @@ export async function router (path = '/', el, state = {}, passedOptions = {}) {
141
141
  )
142
142
  } else {
143
143
  lastElement.content = content
144
+ element.removeContent()
144
145
  await element.set(
145
146
  {
146
147
  tag: options.useFragment && 'fragment',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbo.ls/router",
3
- "version": "2.29.69",
3
+ "version": "2.29.71",
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.29.69"
11
+ "@domql/utils": "^2.29.71"
12
12
  },
13
- "gitHead": "269b8fceb4f17d33c48f1dedb21bc7bf09c2ef29",
13
+ "gitHead": "2ccd453fff2f5e00cf6df90d9562d075bf436c9b",
14
14
  "source": "index.js"
15
15
  }