1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-03 23:49:57 +08:00

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

This commit is contained in:
comfyanonymous
2023-09-05 01:22:03 -04:00
parent 2d9d3ca38b
commit f368e5ac7d

View File

@@ -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();
}