[bug] scroll-behavior: smooth not working together with TOC anchor nav in 2.0.0-beta.15 #6620
Closed
6 of 7 tasks
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
difficulty: starter
Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.
status: accepting pr
This issue has been accepted, and we are looking for community contributors to implement this
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
#6317 breaks pages using
scroll-behavior: smooth
as both JS and CSS are trying to smoothly scroll the page. For sites like about.supabase.com which usesscroll-behavior: smooth
(reasonable thing to add IMO), cliking on the the TOCs don't bring you to the right section of the page.Steps to reproduce
To repro:
Expected behavior
Scroll to the section you clicked on in the TOC.
Actual behavior
Doesn't scroll to the section you clicked on in the TOC.
Your environment
Reproducible demo
No response
Self-service
The text was updated successfully, but these errors were encountered: