[TS] Fix invalid type assertion (#731)

- Follow-up on #728
This commit is contained in:
filtered
2025-03-10 19:55:51 +11:00
committed by GitHub
parent acdbbd547e
commit 4589938ceb

View File

@@ -139,7 +139,7 @@ export class ContextMenu<TValue = unknown> {
})
// insert before checking position
const ownerDocument = (options.event?.target as Node)?.ownerDocument
const ownerDocument = (options.event?.target as Node | null | undefined)?.ownerDocument
const root_document = ownerDocument || document
if (root_document.fullscreenElement)