mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix: LGraphCanvas: add type guard for widget.getContextMenuOptions() and validate returned value (#9390)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,7 @@ import type { CanvasPointerEvent } from '../types/events'
|
||||
import type { LGraphCanvas } from '../LGraphCanvas'
|
||||
import type { LGraphNode } from '../LGraphNode'
|
||||
|
||||
export interface IWidgetWithContextMenu extends IBaseWidget {
|
||||
interface IWidgetWithContextMenu extends IBaseWidget {
|
||||
getContextMenuOptions(opts: {
|
||||
e: CanvasPointerEvent
|
||||
node: LGraphNode
|
||||
|
||||
Reference in New Issue
Block a user