-
Notifications
You must be signed in to change notification settings - Fork 231
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
onNodePositionChange is not called every time #312
Comments
Hi @NoMercy235 @lynameni, please make sure you're running your project with react-d3-graph@2.4.0. I believe this is fixed in the last release. Please clean up your |
Hi @danielcaldas ! As mentioned on the other ticket, I've just recently installed react-d3-graph so there shouldn't be any issues with cache or versioning. In any case, I did clean the cache and reinstalled the library, but the result was the same. Is there anything else I could check? |
If you had a link to the repository I could have a look |
You can try directly using my repository. Follow these steps:
After this, check the contents of the file |
Indeed |
Cool! Thank you! |
Hey there @NoMercy235 version 2.4.1 should now be available in npm. Give it another try with the new version and let me know if we can close this issue and #314. |
Hopefully, this should be a duplicate of #264. Let's hope that react-d3-graph@2.4.1 does the trick for you. |
Yup, everything works correctly now! The links follow the custom |
Duplicate of #314 |
Describe the bug
I've seen this problem discussed here: #264 and it seems like the bug was closed, but I'm still experiencing the same issue.
To Reproduce
I cannot pinpoint what the problem is. It just seems to randomly work/not work regardless of what I'm doing. Sometimes it doesn't trigger even when I move a node halfway across the screen, but then it does trigger if I move it again just a tiny bit.
Expected behavior
The
onNodePositionChange
callback should be triggered every time a node is moved.Screenshots
![image](https://user-images.githubusercontent.com/24717857/77254574-844a0c80-6c6a-11ea-87f3-5578d7131be4.png)
The console.log statement is triggered every time a node is moved. In my case, I moved the
Employee Lounge - more dialogue
node two times, but the console.log statement was triggered only once.Environment:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: