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

nested

Open makotot opened this issue 10 years ago • 6 comments

does not work collectly if nested.

makotot avatar Sep 04 '15 08:09 makotot

Still an issue? Would love to use this if it worked with nested lists (like the ones on getbootstrap.com)

donpinkus avatar Dec 30 '15 10:12 donpinkus

Sorry, it still does not work with nested.

makotot avatar Jan 03 '16 09:01 makotot

@makotot can you provide more detail on this bug such as an example?

adamduren avatar Dec 16 '16 17:12 adamduren

@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 :( 2016-12-18 3 20 59

makotot avatar Dec 17 '16 18:12 makotot

@makotot a codepen or other "proof of concept" with actual code would be helpful.

mustmodify avatar May 04 '17 13:05 mustmodify

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

mreyes819 avatar Jan 08 '19 03:01 mreyes819