Skip to content

Commit 11b8c2e

Browse files
committed
fall back HTMLElement in SSR contexts
1 parent aa116c9 commit 11b8c2e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/tab-container-element.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const HTMLElement = globalThis.HTMLElement || (null as unknown as (typeof window)['HTMLElement'])
2+
13
type IncrementKeyCode = 'ArrowRight' | 'ArrowDown'
24
type DecrementKeyCode = 'ArrowUp' | 'ArrowLeft'
35

0 commit comments

Comments
 (0)