-
Notifications
You must be signed in to change notification settings - Fork 270
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
Restore compatibility with React 15 #237
Comments
This seems to have been broken after version 1.13.0 |
Actually I think this is related to adding |
This PR restores compatibility with React 15 and 16: #239 I think dropping support for React 15.x should be done in a major version, ex: 2.0.0 |
Yeah this was completely unintentional 🤦♂ thanks for reporting it and opening a PR to revert the changes. Since I wanted to solve the compat issue (at least for now) for both people on React 16 and React 15, I've migrated or simplified the affected code and polyfilled with https://github.com/reactjs/react-lifecycles-compat where the compat constraints couldn't be satisfied with I published those changes as v1.15.1. Thanks for your help again, please reopen this if compat issues with React 15 persist 👍 |
Thanks for fixing the issue promptly and the correct way :) |
The issue is still occurring: https://codesandbox.io/s/nifty-wilson-xbfl8 Once you pan even once the tree jumps to the correct destination, I think the issue is this line in
Because I think it would be a better to store |
Are you reporting a bug, or opening a feature request?
Bug
What is the actual behavior/output?
Translate prop does not seem to do anything when using React 15.
What is the behavior/output you expect?
Translate prop would translate SVG with React 15.
Can you consistently reproduce the issue/create a reproduction case (e.g. on https://codesandbox.io)?
Yes: https://codesandbox.io/s/nifty-wilson-xbfl8
What version of react-d3-tree are you using?
1.15.0
The text was updated successfully, but these errors were encountered: