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

Scrollspy doesn't work when navigating from index #333

Closed
bdrtsky opened this issue May 24, 2021 — with Volta.net · 1 comment · Fixed by #335
Closed

Scrollspy doesn't work when navigating from index #333

bdrtsky opened this issue May 24, 2021 — with Volta.net · 1 comment · Fixed by #335
Labels
bug Something isn't working

Comments

Copy link
Contributor

bdrtsky commented May 24, 2021

ToC scrollspy doesn't work when navigating from index page.

@bdrtsky bdrtsky added the bug Something isn't working label May 24, 2021 — with Volta.net
@bdrtsky bdrtsky self-assigned this May 24, 2021
@bdrtsky
Copy link
Contributor Author

bdrtsky commented May 25, 2021

The easiest fix is to put setTimeout but this doesn't feels right.

For some reason it takes quite some time to render Docus content, so Scrollspy initiated too early. What possible solutions to fix this? Maybe we can have an event fired when Docus content is ready or rendered? Then just wait an event and run Scrollspy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant