react-scrollspy
react-scrollspy copied to clipboard
clicking links doesn't highlight them
I think the lib should highlight the elements based on the hash and only if not present, on the scroll position.
right now I have a few navigation items on the same page and if i click those rather at the end, the page scrolls correctly but the highlight is set to the last item in my navigation.
This is probably due to the fact that the last item is also on the page.
Does anyone know how to solve this problem?