mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 09:19:43 +00:00
Fix group node manage opening to wrong node type (#1754)
Remove dialog from DOM when closed Add test
This commit is contained in:
@@ -1001,7 +1001,7 @@ export class GroupNodeHandler {
|
||||
},
|
||||
{
|
||||
content: 'Manage Group Node',
|
||||
callback: manageGroupNodes
|
||||
callback: () => manageGroupNodes(this.type)
|
||||
}
|
||||
)
|
||||
}
|
||||
@@ -1488,8 +1488,8 @@ function ungroupSelectedGroupNodes() {
|
||||
}
|
||||
}
|
||||
|
||||
function manageGroupNodes() {
|
||||
new ManageGroupDialog(app).show()
|
||||
function manageGroupNodes(type?: string) {
|
||||
new ManageGroupDialog(app).show(type)
|
||||
}
|
||||
|
||||
const id = 'Comfy.GroupNode'
|
||||
|
||||
@@ -519,6 +519,7 @@ export class ManageGroupDialog extends ComfyDialog<HTMLDialogElement> {
|
||||
|
||||
this.element.addEventListener('close', () => {
|
||||
this.draggable?.dispose()
|
||||
this.element.remove()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user