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 uncollapsing nodes causes entire graph to be dragged #224

Merged
merged 1 commit into from
Sep 5, 2019

Conversation

danielcaldas
Copy link
Owner

This PR fixes #223.

  • Renamed _graphForcesConfig to _graphBindD3ToReactComponent, found this naming way more meaninful.
  • Splitted _graphBindD3ToReactComponent into two smaller independent units _graphLinkForceConfig and _graphNodeDragConfig.
  • When nodes are un-collasped (if this is even a word 😄) call _graphNodeDragConfig so that we bind revelated nodes with d3-drag.

… so that bind can be granular. Run _graphNodeDragConfig when uncollapsing nodes.
@danielcaldas danielcaldas merged commit ba6a52b into master Sep 5, 2019
@danielcaldas danielcaldas deleted the fix/cant-drag-node-after-uncollapsing branch September 5, 2019 22:11
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.

Drag&Drop does not work for leaf nodes after collapsing and uncollapsing
1 participant