Skip to content

Fix empty input not used when connecting links#24

Merged
huchenlei merged 1 commit into
Comfy-Org:masterfrom
webfiltered:fix-prefer-free-slot
Jul 21, 2024
Merged

Fix empty input not used when connecting links#24
huchenlei merged 1 commit into
Comfy-Org:masterfrom
webfiltered:fix-prefer-free-slot

Conversation

@webfiltered

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

@huchenlei huchenlei left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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