From 018cd7c2795063c37f416a89571477b1249bff18 Mon Sep 17 00:00:00 2001 From: justindeguzman Date: Tue, 12 Nov 2024 13:54:12 -0800 Subject: [PATCH] Remove left nav animation on navigate --- src/theme/DocSidebar/Desktop/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }); }