Skip to content

Docs: improvement around dragging property #969

@dgrcode

Description

@dgrcode

What platform were you using when you found the bug?

any platform

Live code example

No response

Describe the Bug

Followup from xyflow/xyflow#5211 (comment)

In some situations like copying, duplicating, or other manual node editing during dragging, the node's dragging property might get out of sync, which leads to unexpected selection behavior. @ha11owlemon found the right solution for this was manually setting dragging to false when the dragging stop (ref).

We could probably add a note on the onNodeDragStop docs mentioning this so user facing this issue easily understand how to fix the selection behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions