@brillout/docpress 0.6.21-commit-d3557c8 → 0.6.21-commit-05759d2

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.
@@ -18,9 +18,9 @@ function initOnce() {
18
18
  )
19
19
  }
20
20
  function initNavigationFullscreen() {
21
- updateColumnWidth()
22
21
  document.getElementById('navigation-fullscreen-button')!.onclick = toggleNavExpend
23
22
  document.getElementById('navigation-fullscreen-close')!.onclick = toggleNavExpend
23
+ updateColumnWidth()
24
24
  }
25
25
 
26
26
  function toggleNavExpend() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.6.21-commit-d3557c8",
3
+ "version": "0.6.21-commit-05759d2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "// Build vite.config.ts and +config.ts": "",
@@ -54,11 +54,12 @@ function initOnLinkClick() {
54
54
  document.addEventListener('click', (ev) => {
55
55
  const linkTag = findLinkTag(ev.target as HTMLElement)
56
56
  if (!linkTag) return
57
+ const url = linkTag.getAttribute('href')
58
+ if (!url) return
57
59
  hideMobileNavigation()
58
60
  hideNavigationFullScreen()
59
61
  })
60
62
  }
61
-
62
63
  function findLinkTag(target: HTMLElement): null | HTMLElement {
63
64
  while (target.tagName !== 'A') {
64
65
  const { parentNode } = target