We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45e9648 commit 3cd8150Copy full SHA for 3cd8150
1 file changed
apps/react-tools-demo/src/layout/MainLayout.tsx
@@ -62,7 +62,10 @@ export default function MainLayout() {
62
key={name}
63
className={pathname === ("/" + name) ? 'active' : ''}
64
to={"/" + name}
65
- onClick={()=>containerRef.current?.scrollTo(0,0)}
+ onClick={() => {
66
+ containerRef.current?.scrollTo(0, 0);
67
+ closeNav();
68
+ }}
69
>
70
{name}
71
</Link>
0 commit comments