react-scrollspy
react-scrollspy copied to clipboard
Second-to-last section never shows active
The active section always jumps from the third-to-last to the last section, never showing the second-to-last one as active.
My second-to-last section is full page height, so it's not an issue of both being on screen at the same time.
As far as I can tell, the last section is highlighted as soon as you hit the bottom of the container. I work around this by setting the last section to minHeight: 100vh
.
@geirsagberg I have the same issue and your suggestion didn't solve it. any other suggestion?
solved it for me but not visually ideal