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

hashSpy={true} prevents element being active on initial load.

Open drmeloy opened this issue 5 years ago • 0 comments

My page consists of several 100vh sections, with the top section being "home". In the nav bar, when a section is active the icon and font change color.

Without hashSpy, "home" is active on initial page load (font and icon are different color in nav bar). With hashSpy={true}, icon and font are not different colors on initial load. After initial load, clicking the home icon does not make the section become active. The section does become active on scrolling down.

drmeloy avatar Mar 28 '20 21:03 drmeloy