Skip to content

Commit

Permalink
fall back HTMLElement in SSR contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Feb 14, 2024
1 parent aa116c9 commit 11b8c2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tab-container-element.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const HTMLElement = globalThis.HTMLElement || (null as unknown as (typeof window)['HTMLElement'])

type IncrementKeyCode = 'ArrowRight' | 'ArrowDown'
type DecrementKeyCode = 'ArrowUp' | 'ArrowLeft'

Expand Down

0 comments on commit 11b8c2e

Please sign in to comment.