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

Don't initialize scrollspy when #toc element is missing #1998

Merged
merged 2 commits into from
Jan 6, 2022

Conversation

gadenbuie
Copy link
Contributor

Fixes #1959 by only initializing the TOC scrollspy when the #toc element exists. This probably also resolves #1889.

@hadley hadley merged commit f65e81f into r-lib:main Jan 6, 2022
@hadley
Copy link
Member

hadley commented Jan 6, 2022

Thanks for the PR and figuring out the source of this problem!

@gadenbuie gadenbuie deleted the conditional-toc-scrollspy branch January 7, 2022 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants