Skip to content

[pull] main from xyflow:main#97

Merged
pull[bot] merged 9 commits intocode:mainfrom
xyflow:main
Feb 18, 2026
Merged

[pull] main from xyflow:main#97
pull[bot] merged 9 commits intocode:mainfrom
xyflow:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Feb 18, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

ysds and others added 9 commits January 24, 2026 02:29
…matically

Fixes #4841

When nodes were programmatically selected (e.g., adding a new node with `selected: true`),
the nodes selection rectangle would appear but dragging it would not work.

Changes:
- Consolidated duplicate effect hooks in useDrag into a single useIsomorphicLayoutEffect
- Added `disabled` parameter to useDrag to allow external control
- NodesSelection now passes `disabled: !shouldRender` to useDrag
- Improved condition clarity with `shouldRender` variable

This ensures drag handlers are properly set up when nodeRef.current becomes available,
even when the selection state changes after the initial render.
Fix old callback references passed to XYHandle
…grammatic-selection

fix: ensure drag handlers update when nodes selection changes programmatically
@pull pull Bot locked and limited conversation to collaborators Feb 18, 2026
@pull pull Bot added the ⤵️ pull label Feb 18, 2026
@pull pull Bot merged commit ac89f9f into code:main Feb 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants