Hey, quick question about how to keep the first element of the ToC "unhighlighted" when I am scrolling through some sections that are placed above the ToC?
For example, here is my navigation sidebar:
section 1
section 2
ToC
H1
H2
H3
As far as I understand, when the ToC is init and with highlightDefault = true, H1 will be highlighted, even while user is viewing section 1 and section 2 in the main frame. However when I set highlightDefault = false, the subheaders disappear entirely. How do I make H1 remain "unhighlighted" until the user scrolls to that portion of the page?
Hey, quick question about how to keep the first element of the ToC "unhighlighted" when I am scrolling through some sections that are placed above the ToC?
For example, here is my navigation sidebar:
As far as I understand, when the ToC is init and with highlightDefault = true, H1 will be highlighted, even while user is viewing section 1 and section 2 in the main frame. However when I set highlightDefault = false, the subheaders disappear entirely. How do I make H1 remain "unhighlighted" until the user scrolls to that portion of the page?
Thanks!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.