pythongosssss / ComfyUI-Custom-Scripts

Enhancements & experiments for ComfyUI, mostly focusing on UI features
MIT License
1.36k stars 104 forks source link

When using the prompt randomizing feature of ComfyUI, the cursor will automatically and constantly jump to the end of the prompt. #257

Open Jellybit opened 1 month ago

Jellybit commented 1 month ago
  1. Clear the workflow.
  2. Insert a Clip Text Encode node (you can even add one from other developers).
  3. Enter a random selection in a prompt, like so:
    {option1|option2|option3}
    rest of prompt
  4. Now attempt to edit any of the options, or really anything in the prompt except for the end of it.

Result: The cursor will jump to the end of the prompt (in the case above, the end of the word "prompt"). This makes it nearly impossible to edit the prompt if using the randomizing feature described here:

https://blenderneko.github.io/ComfyUI-docs/Interface/Textprompts/

Using Chrome on Windows 10. Custom-Scripts last updated 2024-05-21.

gachapengames commented 1 month ago

Encountering the same issue. Firefox 126.0. This repo was installed on 5-8-24.

pythongosssss commented 1 month ago

I'm not seeing this behavior on my end with Chrome or Firefox, if you disable autocomplete does this resolve the issue for you? image

gachapengames commented 1 month ago

Tried unchecking all autocomplete, and then all custom scripts options, did not resolve. After uninstalling node, problem is gone.

unsivilaudio commented 1 month ago

Yep, same here.

EDIT: small workaround, escape one of your braces "\{" and this won't happen