We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ba7bad commit a9ac510Copy full SHA for a9ac510
src/tab-container-element.ts
@@ -1,6 +1,5 @@
1
const HTMLElement = globalThis.HTMLElement || (null as unknown as (typeof window)['HTMLElement'])
2
-const HTMLSlotElement = globalThis.HTMLSlotElement || (null as unknown as (typeof window)['HTMLSlotElement'])
3
-const manualSlotsSupported = 'assign' in HTMLSlotElement.prototype
+const manualSlotsSupported = 'assign' in (globalThis.HTMLSlotElement?.prototype || {})
4
5
export class TabContainerChangeEvent extends Event {
6
constructor(type: string, {tab, panel, ...init}: EventInit & {tab?: Element; panel?: Element}) {
0 commit comments