Fix group node manage opening to wrong node type (#1754)

Remove dialog from DOM when closed
Add test
This commit is contained in:
pythongosssss
2024-12-02 00:52:08 +00:00
committed by GitHub
parent 9b07993e1a
commit 5c6eecd660
4 changed files with 41 additions and 3 deletions

View File

@@ -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'

View File

@@ -519,6 +519,7 @@ export class ManageGroupDialog extends ComfyDialog<HTMLDialogElement> {
this.element.addEventListener('close', () => {
this.draggable?.dispose()
this.element.remove()
})
}
}