diff --git a/src/theme/DocSidebar/Desktop/index.js b/src/theme/DocSidebar/Desktop/index.js index 0e177664bb6..ba5bb87bd44 100644 --- a/src/theme/DocSidebar/Desktop/index.js +++ b/src/theme/DocSidebar/Desktop/index.js @@ -30,7 +30,7 @@ function DocSidebarDesktop({path, sidebar, onCollapse, isHidden, ...props}) { // Only scroll if the link is not already in view if (!isVisible) { activeLink.scrollIntoView({ - behavior: 'smooth', + behavior: 'auto', block: 'center', // 'start' or 'end' depending on where you want the link }); }