Skip to content

DragNewLinkState bug when pressing down with another mouse button while dragging. #1012

Open
@rlsvarinskis

Description

If I start dragging a link from a node using my left mouse button and then press the middle or right mouse button, I get the following error in DragNewLinkState.ts:48: this.port.createLinkModel is not a function. The link then ends up hanging without ever having called canLinkToPort or checking for allowLooseLinks.

This seems to be because the DragNewLinkState is still active, but the MOUSE_DOWN action assumes it has just been created by clicking on a port.

There's also a similar bug where if I drag a link over an HTML element that is not part of react-diagrams or outside of the window and release my mouse button, the link also ends up hanging without ever checking canLinkToPort or allowLooseLinks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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