diff --git a/web/scripts/app.js b/web/scripts/app.js index f0bb8640..5efe08c0 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();