Fix: Disabling textarea when linked. (#8818)

## Summary

Misaligned option setting when building the SimplifiedWidget.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-8818-Fix-Disabling-textarea-when-linked-3056d73d365081f581a9f1322aaf60bd)
by [Unito](https://www.unito.io)

---------

Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
Alexander Brown
2026-02-11 18:45:52 -08:00
committed by GitHub
parent 6012341fd1
commit 30ef6f2b8c
2 changed files with 8 additions and 7 deletions

View File

@@ -555,7 +555,7 @@ export class ComfyApp {
try {
workspace.spinner = true
if (fileMaybe instanceof File) {
await this.handleFile(fileMaybe, 'file_drop')
await this.handleFile(fileMaybe, 'file_drop')
}
if (fileMaybe instanceof FileList) {
@@ -1575,7 +1575,6 @@ export class ComfyApp {
this.showErrorOnFileLoad(file)
}
/**
* Loads multiple files, connects to a batch node, and selects them
* @param {FileList} fileList
@@ -1602,19 +1601,19 @@ export class ComfyApp {
*/
positionBatchNodes(nodes: LGraphNode[], batchNode: LGraphNode): void {
const [x, y, width] = nodes[0].getBounding()
batchNode.pos = [ x + width + 100, y + 30 ]
batchNode.pos = [x + width + 100, y + 30]
// Retrieving Node Height is inconsistent
let height = 0;
let height = 0
if (nodes[0].type === 'LoadImage') {
height = 344
}
nodes.forEach((node, index) => {
if (index > 0) {
node.pos = [ x, y + (height * index) + (25 * (index + 1)) ]
node.pos = [x, y + height * index + 25 * (index + 1)]
}
});
})
this.canvas.graph?.change()
}