Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for first nav link not being made active again when returning to it #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

england9911
Copy link

We found that when scrolling down to any new section, that when you returned to the first section (in this case labelled 'Home') then the first link in the nav was not set to have the 'active' class again. This would happen whether you manually scrolled or clicked nav links.

Subsequent sections all seemed to work as expected when scrolling or clicking between them. It was just the first section / nav link that didn't seem to work.

This tweak seems to fix this issue for us, perhaps it would be useful to others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant