Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty input not used when connecting links #24

Merged
merged 1 commit into from
Jul 21, 2024

Conversation

webfiltered
Copy link
Collaborator

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
Member

@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
2 checks passed
@huchenlei
Copy link
Member

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