Skip to content

Fix autocomplete in App mode and Nodes 2.0 - #85

Open
Comahar wants to merge 1 commit into
newtextdoc1111:mainfrom
Comahar:main
Open

Comahar wants to merge 1 commit into
newtextdoc1111:mainfrom
Comahar:main

Conversation

@Comahar

@Comahar Comahar commented Nov 10, 2026 •

Copy link
Copy Markdown

Autocomplete only attached reliably when ComfyWidgets.STRING created the textarea, or when the internal _useFallbackAttachmentForEventListener path was enabled and the element matched .comfy-multiline-input. In App mode and Nodes 2.0 (Vue node shells), multiline prompt textareas often use different DOM ([data-testid="app-mode-widget-item"], [data-node-id], .lg-node-widget, etc.), so listeners were never bound and tag autocomplete did not run.

This change always runs the existing MutationObserver DOM scan (same pattern as the previous opt-in fallback) and extends targetSelectors to cover those surfaces. The ComfyWidgets.STRING hook is unchanged. Attached elements still use NodeInfo('Fallback', 'unknown') for DOM-discovered textareas, consistent with the previous fallback behavior.

Fixes #56
Fixes #69
Related #73

Always run the DOM textarea scan and extend selectors for App mode and Vue node shells. Previously this only ran when an internal fallback flag was set and only matched .comfy-multiline-input.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Supporting AppMode Not working with ComfyUI's new Modern Node Design (Nodes 2.0)

1 participant