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.

Only clear clipboard when copying nodes.

comfyanonymous0793eb926933
diff --git a/web/scripts/app.js b/web/scripts/app.js
index f0bb8640c..5efe08c00 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -753,8 +753,9 @@ export class ComfyApp {
// Default system copy
return;
}
+
// copy nodes and clear clipboard
- if (this.canvas.selected_nodes) {
+ if (e.target.className === "litegraph" && this.canvas.selected_nodes) {
this.canvas.copyToClipboard();
e.clipboardData.setData('text', ' '); //clearData doesn't remove images from clipboard
e.preventDefault();