react-scrollspy
react-scrollspy copied to clipboard
nested
does not work collectly if nested.
Still an issue? Would love to use this if it worked with nested lists (like the ones on getbootstrap.com)
Sorry, it still does not work with nested.
@makotot can you provide more detail on this bug such as an example?
@adamduren
Make nested scrollspy causes strange behavior like this (Nested navigations should not be styled as active element, bacause the parent nav is not active element.)
I cannot find out a way to get to know the parent component is active or not active from the child component :(

@makotot a codepen or other "proof of concept" with actual code would be helpful.
I cheap trick is to create space between your anchor points. For me, that meant setting margin-bottom to 55vh between my main body components. That and tuning the offset it came out pretty nice.
Whatever nested anchor element that is in view it's currentClassName will be active