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

BUGFIX: fix the bug that 'Element's will not scroll , while the second time u enter the component and click the 'Scroll' #114

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

HopeLyn
Copy link
Contributor

@HopeLyn HopeLyn commented Jul 26, 2016

I have a page which contains some component using the <ScrollLink> and the <Element>.

  • When I first go into this page, I click one <ScrollLink> and the relevant <Element> will scroll to the top.
  • Then I go to some other page, this component unmount. And I go back this page, this component amount again. Then I click the same one <ScrollLink>, the relevant <Element> doesn't scroll any more.

Finally, I find out that __containerElement don't release while I unmount the component with the <ScrollLink>s and the <Element>s.

There must be some better way to solve it, but it works for me.

@erinmeyers88
Copy link
Contributor

Thank you! This fixed my problem!

@harbirg
Copy link

harbirg commented Mar 10, 2017

@fisshy I'm running into the same issue as described here and ISSUE https://github.com/fisshy/react-scroll/issues/120. Trying this PR resolves the issue. Can this be committed to main? So I dont have to use a patch.

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.

3 participants