From f368e5ac7d31649b22c0c1e44bc9fa8002fcb117 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Tue, 5 Sep 2023 01:22:03 -0400 Subject: [PATCH] Don't paste nodes when target is a textarea or a text box. --- web/scripts/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/scripts/app.js b/web/scripts/app.js index 7f50735..9c380d3 100644 --- a/web/scripts/app.js +++ b/web/scripts/app.js @@ -717,8 +717,12 @@ export class ComfyApp { this.loadGraphData(workflow); } else { + if (e.target.type === "text" || e.target.type === "textarea") { + return; + } + // Litegraph default paste - this.canvas.pasteFromClipboard(); + this.canvas.pasteFromClipboard(); }