-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
47 lines (35 loc) · 1.16 KB
/
Copy path__init__.py
File metadata and controls
47 lines (35 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
"""
ComfyUI Drag Error Fix
Suppresses the "Cannot read properties of undefined (reading 'config')" error
that occurs when dragging nodes with widgets from the sidebar.
This is a ComfyUI frontend bug that affects all nodes with widgets.
This extension provides a global fix without modifying ComfyUI core.
"""
class DragErrorFixNode:
"""
A minimal utility node that loads the drag error suppression.
The actual fix is in the web extension (web/fix.js).
This node just provides a visible indicator that the fix is installed.
"""
@classmethod
def INPUT_TYPES(cls):
return {
"required": {},
"optional": {}
}
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("status",)
FUNCTION = "get_status"
CATEGORY = "utils"
OUTPUT_NODE = True
def get_status(self):
return ("ComfyUI Drag Error Fix - Active ✓",)
NODE_CLASS_MAPPINGS = {
"DragErrorFix": DragErrorFixNode,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"DragErrorFix": "🔧 Drag Error Fix",
}
# Tell ComfyUI to load our web extension
WEB_DIRECTORY = "./web"
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', 'WEB_DIRECTORY']