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

useProximity throws error on getCoords #198

Open
jweinstein92 opened this issue Jan 6, 2023 · 0 comments
Open

useProximity throws error on getCoords #198

jweinstein92 opened this issue Jan 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jweinstein92
Copy link
Contributor

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Current behavior

When using useProximity when a node is dragged, a console error is thrown

Expected behavior

There should be no error thrown when dragging a node

Minimal reproduction of the problem with instructions

The getCoords definition expects the call to include a layoutXY property like in useNodeDrag

What is the motivation / use case for changing the behavior?

Correct usage of the getCoords function

Environment


Libs:
- react version: 18.2.0
- reaflow version: 5.1.1


Browser:
- [x] Chrome (desktop) version 108.0.5359.124
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

@amcdnl amcdnl added the bug Something isn't working label Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants