Skip to content

automaticRearrangeAfterDropNode doesn't work correctly if nodeHighlightBehavior is true #272

@StraightOuttaCrompton

Description

@StraightOuttaCrompton

Describe the bug
If nodeHighlightBehavior is true, then the node rearrange behaviour is different to when nodeHighlightBehavior is false.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://goodguydaniel.com/react-d3-graph/sandbox/index.html
  2. Set automaticRearrangeAfterDropNode: true
  3. Click fullscreen
  4. Drag a well connected node somewhere (Note that the nodes rearrange as expected).
  5. Click the red X
  6. Now set nodeHighlightBehavior: true (Double check automaticRearrangeAfterDropNode: true)
  7. Click fullscreen
  8. Drag a well connected node somewhere (Note that the nodes do not rearrange as before)

Expected behavior
When

{
    "automaticRearrangeAfterDropNode": true,
    "nodeHighlightBehavior": true
}

drop rearrange behaviour is not the same as the expected behaviour when

{
    "automaticRearrangeAfterDropNode": true,
    "nodeHighlightBehavior": false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementimproving existent functionality or performance relatedpriority low

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions