mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 16:40:05 +00:00
Increase timeout on prompt dialog dismiss (#86)
* Increase timeout on prompt dialog dismiss * Add devtools node to test wf
This commit is contained in:
6
.github/workflows/test-comfyui-frontend.yml
vendored
6
.github/workflows/test-comfyui-frontend.yml
vendored
@@ -35,6 +35,12 @@ jobs:
|
||||
repository: "Comfy-Org/ComfyUI_frontend"
|
||||
path: "ComfyUI_frontend"
|
||||
|
||||
- name: Checkout ComfyUI_devtools
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: "Comfy-Org/ComfyUI_devtools"
|
||||
path: "ComfyUI/custom_nodes/ComfyUI_devtools"
|
||||
|
||||
- name: Checkout ComfyUI_examples
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
@@ -11432,8 +11432,9 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
|
||||
setTimeout(function() {
|
||||
input.focus();
|
||||
const clickTime = Date.now();
|
||||
function handleOutsideClick(e) {
|
||||
if (e.target === canvas) {
|
||||
if (e.target === canvas && Date.now() - clickTime > 256) {
|
||||
dialog.close();
|
||||
canvas.parentNode.removeEventListener("click", handleOutsideClick);
|
||||
canvas.parentNode.removeEventListener("touchend", handleOutsideClick);
|
||||
|
||||
Reference in New Issue
Block a user