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: Allow children links in toc to close the toc #835

Merged
merged 1 commit into from Mar 8, 2023

Conversation

electrolinux
Copy link
Contributor

This is for when the TOC is rendered on a small device.

Without this code, only first level links close the TOC when clicked.

This is for when the TOC is rendered on a small device.
Without this code, only first level links close the TOC when clicked.
@vercel
Copy link

vercel bot commented Feb 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
docus ✅ Ready (Inspect) Visit Preview Feb 28, 2023 at 5:45PM (UTC)

@electrolinux
Copy link
Contributor Author

Small demo of the bug on stackblitz

@Atinux Atinux changed the title Allow children links in toc to close the toc fix: Allow children links in toc to close the toc Mar 8, 2023
@Atinux Atinux merged commit a3ec4be into nuxt-themes:main Mar 8, 2023
Copy link
Contributor

Atinux commented Mar 8, 2023

Thank you so much for the fix and the great reproduction @electrolinux 🙏

@electrolinux electrolinux deleted the allow-sublinks-to-close-toc branch March 8, 2023 23:09
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.

None yet

2 participants