Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Don't paste nodes when target is a textarea or a text box.

comfyanonymousf368e5ac7d31
diff --git a/web/scripts/app.js b/web/scripts/app.js
index 7f5073573..9c380d3fb 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();
}