Closed robatwilliams closed 5 years ago
Workaround: pass a scroll
prop with a function element => element.scrollIntoView()
@robatwilliams I'm on the same boat, could you pls post your workaround solution?
I already did in the previous post.
To clarify, I'm referring to using this feature: https://github.com/rafrex/react-router-hash-link#scroll-function
This should be fixed now in v1.2.1
alignToTop = true
is the default: https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoViewIt appears that the passing of
undefined
here is being interpreted asfalse
: https://github.com/rafrex/react-router-hash-link/blob/master/src/index.js#L68