react-scrollspy icon indicating copy to clipboard operation
react-scrollspy copied to clipboard

Second-to-last section never shows active

Open boydkr opened this issue 6 years ago • 3 comments

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.

boydkr avatar Apr 06 '18 17:04 boydkr

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 avatar Jul 09 '18 12:07 geirsagberg

@geirsagberg I have the same issue and your suggestion didn't solve it. any other suggestion?

nidaorhan avatar Jul 12 '19 14:07 nidaorhan

solved it for me but not visually ideal

apolopena avatar Nov 12 '19 08:11 apolopena