Skip to content

Conversation

@webfiltered
Copy link
Contributor

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.

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).
Copy link
Contributor

@huchenlei huchenlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for fixing this!

@huchenlei huchenlei merged commit ee0b8a0 into Comfy-Org:master Jul 21, 2024
@huchenlei
Copy link
Contributor

Shipped in https://github.com/Comfy-Org/ComfyUI_frontend/releases/tag/v1.2.2

@webfiltered webfiltered deleted the fix-prefer-free-slot branch July 24, 2024 03:14
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.

2 participants