You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the activeNavClass is set in the onScroll it will only capture the class on a tiny scroll.
The expected behaviour would be that the first element is selected on page load.
Thanks for this great library.
The text was updated successfully, but these errors were encountered:
mordechaim
changed the title
First
First item won't get active class until scrolled
May 6, 2020
mordechaim
added a commit
to mordechaim/react-scrollspy-nav
that referenced
this issue
May 7, 2020
Since the
activeNavClass
is set in theonScroll
it will only capture the class on a tiny scroll.The expected behaviour would be that the first element is selected on page load.
Thanks for this great library.
The text was updated successfully, but these errors were encountered: