chrisgoringe / cg-use-everywhere

Apache License 2.0
355 stars 28 forks source link

"//" in multiline input causes strange behaviour when connected nodes highlighted #172

Open za-wa-n-go opened 3 months ago

za-wa-n-go commented 3 months ago

When the connected nodes feature is turned on, there is a problem where the input cursor moves on its own when "//" is used in the text input area.

chrisgoringe commented 3 months ago

Please provide more information

za-wa-n-go commented 3 months ago

https://github.com/chrisgoringe/cg-use-everywhere/assets/118154415/ce09549c-b150-4592-a0ee-35f325e026db

JorgeR81 commented 3 months ago

Yes, I can reproduce this.

With "//" in the prompt, no matter where I click, the cursor always returns to the ending of the text, after "FastNegative,".

If I disable "highlight connected nodes", it works again.

sls

hl

chrisgoringe commented 3 months ago

That is so weird. I'll dig into it! Does // have some special meaning? Maybe to another custom node? I've never used it.

za-wa-n-go commented 3 months ago

can disable the string written in a line prefixed with "//".

za-wa-n-go commented 3 months ago

https://github.com/comfyanonymous/ComfyUI

image
chrisgoringe commented 3 months ago

Thanks. Didn't know that!

PsiClone99 commented 3 months ago

I am facing the same issue when adding { } to the prompt box, it jumps to the last word, once the parenthesis is removed, it works normal.