web-documentation 1.0.19 → 1.0.20

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/package.json +1 -1
  2. package/source/index.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-documentation",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Declarative multilanguage documentation website generator",
5
5
  "keywords": [
6
6
  "documentation",
package/source/index.ts CHANGED
@@ -30,7 +30,6 @@ import {
30
30
  Logger,
31
31
  Mapping,
32
32
  NOOP,
33
- timeout,
34
33
  wrap
35
34
  } from 'clientnode'
36
35
  import {func, object} from 'clientnode/property-types'
@@ -291,7 +290,8 @@ export class WebDocumentation<
291
290
  (event) => {
292
291
  event.preventDefault()
293
292
 
294
- const selector = event.target.getAttribute('href')
293
+ const selector =
294
+ (event.target as Element | null)?.getAttribute('href')
295
295
  if (selector) {
296
296
  const targetDomNode =
297
297
  this.hostDomNode.querySelector(selector)