Comfy-Org / Comfy-Org/ComfyUI_frontend

Question: Is it possible to add a default close modal feature for all custom node pop-up windows?

Open
#5,828 1 comment 0 reactions 0 assignees View on GitHub
Custom Node question
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

One WeChat user asked today if it is possible to add a default close feature for some custom node popups. The user found he can't close the pop-up modal when using the [ComfyUI-ultimate-openpose-editor](https://github.com/westNeighbor/ComfyUI-ultimate-openpose-editor).

There seems to be a page loading error with this custom node, and I can’t find how to close the modal either, unless I refresh the browser.

So is it possible to add a default close feature for custom node popup windows?

https://github.com/user-attachments/assets/3e263627-7940-442d-8719-92ebf27f50cf

https://github.com/westNeighbor/ComfyUI-ultimate-openpose-editor

Image

1. Add a close icon to close the `comfy-modal`.
2. Support pressing the `Esc` key to close the `comfy-modal`

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-5828-Question-Is-it-possible-to-add-a-default-close-modal-feature-for-all-custom-node-pop--27c6d73d365081f3afa6e49cf39113e8) by [Unito](https://www.unito.io)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.