Fix empty input not used when connecting links by webfiltered · Pull Request #24 · Comfy-Org/litegraph.js (original) (raw)

UX improvement - drag/drop inputs

When dragging a link onto a node, it will always replace the first matching input type, unless you drop in the (respectively tiny) input hit box.

This commit fixes that, honouring the intended behaviour (preferFreeSlot is true in internal calls).

Example - connecting positive / negative prompts

Positive prompt to sampler

image

Negative prompt to sampler

image

Magic!

image

This is a breaking change. But you know, in the good way.