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
Cannot read property 'isEqualNode' of null #405
Comments
Hello! |
Hello! |
I checked in various cases. I couldn't get this issue. |
same issue here. this is how i use it:
|
It is should work. I created the same code and checked it. It works for me. You should verify the existence of the container. |
the container exists.
the problem fixed. |
Thank you for help. I know how I can fix this method. But I don't know how can I get this issue. I don't know why you are getting this issue and what caused it. I will test this method tomorrow and add additional checks |
I improved the condition and hope that this solves the issue. |
I am facing the same issue on the latest version 1.7.15. It is the basic example from the repo in which I have just commented out most of the code not related to scrolling inside container. With default v1.7.7 it works but if you update to latest version it doesn't. You may setup the same code locally to the see the error in console. |
I also noticed that though the 'scrollTo' action itself works from v1.7.8 to v1.7.14, the offset (position where it scrolls to) is not correct as it overshoots. |
It did not. |
I just wanted to add a comment that I am experiencing this issue as well as of 1.7.15, reverting to 1.7.14 fixes my code. I am using the Link component // wrapper to navigate to the Element component wrapper. utils.js:30 Uncaught TypeError: Cannot read property 'isEqualNode' of null |
I believe I've solved the issue here. https://github.com/fisshy/react-scroll/tree/pre-1.7.15 Checkout this branch, and I will merge it later. |
I don't see the changes |
Now, it helps to actually push them ;D |
seems broken with latest react ^16.12.0 |
Hey guys, so after struggling with this issue all day, I think I've found the solution. The .offsetParent property looks for the nearest non-static ancestor. That means that if your scroll container and the parent element that contains your doesn't have an explicitly set position and the nearest non-static ancestor they both share happens to be the same element, the For a stopgap solution set the position of your container element and the parent of your explicitly to something other than static. I'm not sure what changed or why it worked before, but I got it working again after going nearly insane trying to solve this |
reverting to the old version does the trick |
Try the new version |
The new version fixes it! |
It also fixed our issue. thank you. |
Hi @fisshy !
I found an issue and I assume that it's related to these changes:
6c02a59
@borunovm Could you check it, please?
The text was updated successfully, but these errors were encountered: