mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 08:30:06 +00:00
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user