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

Add anchor to only specific sections #4228

Open
johndp opened this issue Jun 16, 2021 · 1 comment
Open

Add anchor to only specific sections #4228

johndp opened this issue Jun 16, 2021 · 1 comment

Comments

@johndp
Copy link

johndp commented Jun 16, 2021

Description

Added a data-anchor attribute to one of the section (no data-anchor to other sections), when scrolling to the said section with data-anchor, the navigation bullet doesn't set to active/current state.

Link to isolated reproduction with no external CSS / JS

https://jsfiddle.net/67x4tr10/

This issue is similar to this: #4037

@alvarotrigo
Copy link
Owner

Anchors should be added to all sections or none of them.
You can't add it only to one single section.

I'll mark this as a possible enhancement for future versions.

@alvarotrigo alvarotrigo changed the title Using data-anchor doesn't update navigation bullet to active/current Add anchor to only specific sections Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants