diff --git a/beta/src/components/Layout/Nav/Nav.tsx b/beta/src/components/Layout/Nav/Nav.tsx index bbd5a9b6..60eabc24 100644 --- a/beta/src/components/Layout/Nav/Nav.tsx +++ b/beta/src/components/Layout/Nav/Nav.tsx @@ -187,6 +187,11 @@ export default function Nav() { }); }, [showFeedback]); + function selectTab(nextTab) { + setTab(nextTab); + scrollParentRef.current!.scrollTop = 0; + } + return (
- setTab('home')}> + selectTab('home')}> Home - setTab('learn')}> + selectTab('learn')}> Learn - setTab('apis')}> + selectTab('apis')}> API