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

Table of content links are never active if they point to content located at the bottom of a page. #140

Closed
maxime-bc opened this issue Aug 23, 2022 · 1 comment

Comments

@maxime-bc
Copy link
Contributor

Hello,

Inside the table of content, if we click on a link that points to content located at the bottom of a page, the link will not change its status and never be active.

To Reproduce

For example, when visiting the clean-jsdoc-theme home page, if we click on Developing in the table of content, the Developing link will be active. But any following link (Contributing, Thanks, Contact, License) will never be active if click on them as they point to content located at the bottom of the page.

Expected behavior

Clicking any link inside the table of content should trigger their active status.

Desktop :

  • OS: Ubuntu 22.04.1 LTS
  • Browser: Firefox 104.0
@maxime-bc maxime-bc changed the title Table Of Content links are not active if they point to content at the bottom of a page. Table of content links are not active if they point to content located at the bottom of a page. Aug 23, 2022
@maxime-bc maxime-bc changed the title Table of content links are not active if they point to content located at the bottom of a page. Table of content links are never active if they point to content located at the bottom of a page. Aug 23, 2022
@ankitskvmdam
Copy link
Owner

Yes, this is a known bug. I have no idea how to make it active when we are on the last page. I guess this is the limitation in the Tocbot library (We are using tocbot under the hood for TOC).

I will try to find some time to solve this issue. In the meantime, if you have any suggestions/solutions then please feel free to share.

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

No branches or pull requests

2 participants