Skip to content

Commit a3949df

Browse files
authored
Merge pull request #84 from github/htmlslotelement-ssr-support
HTMLSlotElement needs SSR support
2 parents 3996e61 + a9ac510 commit a3949df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tab-container-element.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const HTMLElement = globalThis.HTMLElement || (null as unknown as (typeof window)['HTMLElement'])
2-
const manualSlotsSupported = 'assign' in HTMLSlotElement.prototype
2+
const manualSlotsSupported = 'assign' in (globalThis.HTMLSlotElement?.prototype || {})
33

44
export class TabContainerChangeEvent extends Event {
55
constructor(type: string, {tab, panel, ...init}: EventInit & {tab?: Element; panel?: Element}) {

0 commit comments

Comments
 (0)